How did the snake of the garden, which embodied the evil rebellious spirit against God, come into existence?

How did the snake of the garden, which embodied the evil rebellious spirit against God, come into existence?

Polarities are necessary. Light needs dark, good needs evil. Without tension, there’s no movement - no spark for innovation or progression
I am not so sure “evil” is a thing, so much as a description of the absence of a thing. To sin is to disobey God. A sin is the act of disobeying God.
But in this light, I do concur that God effectively authored the concept by providing commandments.
Since there is zero evidence that any such snake ever existed, the question answers itself.
"And God made the beasts of the earth according to their kinds and the livestock according to their kinds, and everything that creeps on the ground according to its kind. And God saw that it was good." (Genesis 1:25)
This passage implies that God created the snakes, along with all other creatures, and declared them "good." The Hebrew word "tov" (good) used in this context suggests that God's creation, including the snakes, was pleasing to Him and served a purpose in the grand scheme of creation.