This is a good question and I see where it is leading. I would contend that God created snakes. I would not contend that God created the Devil.
Some of these questions are beyond our earthly reasoning. I just abject that “God is the author of evil.” I agree that God uses evil to his glorification as the master of all.
The rest unknown I humbly lay at his feet until it is revealed to me.