Fallen angel
The idea that fallen angels taught sorcery and sin, could also explain how sin entered a perfect world. If God created a good and perfect world, there would be no sin. But when there is sin in the world, sin must have come from outside of the world, what is the world of the angels.