first of all God turned the staff into the snake, and second, the magicians where helped by satin (WHICH IS A VERY MEAN PERSON)
According to The Bible/Tanakh/Old Testament, when Moses went before Pharoah, Moses' staff changed into a snake/serpent, and then back into a staff again. (Exodus 4:1-5)
God told Moses to throw the staff, and God turned it into bronze and it was known to be the Nehushtan staff. When this happened, the staff turned into a snake. God ordered Moses to pick up the staff and when Moses did, it turned back to it's original self. Many people in Moses' time destroyed it for other goods.
There is no suggestion in the text that the snake represented anything except a real snake.
The Pharaohs heart was hardened, and the Egyptian magician also changed the staff into a snake.
It was a test of faith. Once the staff had transformed - he was instructed to pick up the snake by tail - risking getting bitten - however, when he did as instructed - the snake turned back into a staff.
He had a staff.
Moses' staff.Moses' staff.Moses' staff.Moses' staff.Moses' staff.Moses' staff.
Joseph
In Exodus chapter 4, Moses gains confidence and performs miraculous signs to convince the Israelites and Pharaoh of his mission from God. In Exodus chapter 5, Moses and Aaron request Pharaoh to release the Israelites to worship, but Pharaoh responds by increasing the work burden on the Israelites. The Israelites blame Moses and Aaron for making their situation worse.
The Bible often uses the staff or rod to symbolize the authority one has or the authority vested in him by another. Moses' staff became a symbol of his authority and commission from God when he appeared before the older men of Israel, also when he appeared before Pharaoh and the magic-practicing priests of Egypt. (Exodus 4:29-31; 7:9-12) And at God's direction, Moses lifted up his staff over the sea and "split it apart" that the Israelites might escape on dry land. Afterward God had Moses stretch out his staff again, and the waters plunged down on the Egyptians, drowning them all including Pharaoh! (Exodus 14:21-3; Psalm 136:15)
In Exodus 4:14, God expresses his anger toward Moses for his reluctance to follow the instructions given to him. This passage highlights God's frustration with Moses's lack of faith and commitment to carry out the tasks assigned to him.
An Aesculapian staff is a symbol of the medical profession, consisting of a branched staff with a single snake entwined around it.