There are (apparently) good snakes. There are also (definitely) bad snakes.
in Numbers 21, God uses the instrument of the people's pain as the symbol of their future deliverance.
In the same way, God would use the ultimate instrument of death (the cross) as a symbol of our deliverance.