Let's get thing straight here,
God made, ALL, ALL, ALL, THINGS. and He made nothing in vain, nothing unto vanity.
So this means that all things and spirits where made perfect by God to do the things that they were created to do. E.g. God made Satan to perfect in his ways do the job that God created him to do,tempt us, planned from the beginning.
2 Tim,1:9-10. Who hath saved us with a holy calling, not according to our works, but according to His own purpose and grace, which was given us in Jesus Christ before the world began, but is now made manifest by the appearing of our saviour Jesus Christ, who hath abolished death, and hath brought life and immortality to light through the gospel.
This scripture speaks for itself, God planned for Jesus to save us from our sin before the world began, in other words God planned for sin to enter the world, I call the Devine setup at Eaden.
Lusifer was not the author of sin, God was, Lusifer was made perfect in his ways to do the job that he created to do, tempt us to sin.
Everything God did was for good for His chosen people, as in the Passover, sending the spirit of death, even taking the lives of His chosen people.
I could go on, but it's bed time in England, With Love, Wnl