Snakes often appear in dreams. They are the easiest animals to dream, and they also represent more contents.
But according to your dream, I think it may be a symbol of the troubles you encounter in your life, or someone who brings you trouble.
A poisonous snake means that the adverse effects will be more serious. If you are entangled in those things or people, it will be very troublesome.
Snakes are big and small, indicating each other's age or threat.
As for you hitting a child, a very annoying child may be related to the little snake in the previous dream.
A child represents an ignorant and naive person. Beating him is a sign of dissatisfaction.
I wonder if you have encountered any bad things or people you don't like in your life recently?
Although both snakes and children may represent troubles in reality, sometimes they conflict with other things in dreams, and sometimes they also represent the struggle of inner thoughts.
I just feel ambivalent about some problems and wrong about my attitude or principles in handling things.
Dreams are caused by reality. Settle the messy things in reality and the dream will be calm.