I wanted to share this reply because I believe it is instructionally significant to the thread’s theme concerning God’s omniscience and omnipotence.
Here's what I think:
God created everything.... including evil. If God did not create it, it wouldn't exist.
God does not do evil, but the fact that evil exists IS GOOD, because it will ultimately glorify Him through the eventual destruction of it.
Too many people want to let God off the hook for evil in the world. But the bottom line is that God does not want to be let off the hook. God is sovereign overall and nothing in the universe happens outside of God's sovereignty. He will accomplish all his purpose (Isaiah 46:9-10).
The fall of the angels in heaven was ordained by God. He was not "surprised" by it. If God did not ordain it, it wouldn't have happened.
Same for the fall of Adam and Eve. Replace them with any other couple that you know and they would have made the exact same decision. It's all good fun to call them idiots or to say "they screwed us" by sinning, but it's folly to claim that had you or I been in the garden back then that we would have made any other decision.
God does not cause the sinner to sin. He doesn't need to. The sinner will sin by default. More often, God restrains us from sinning, way more than we probably ever know (Gen 20:6).
When explaining this concept, many people use language that God "allows" sin to happen. I personally don't believe this is the best word choice because "allowing sin" implies that God is relatively unengaged and is somehow discovering humans conducting sinful acts as history plays itself out. I believe that all sin is ordained by God and is part of His design. The scripture says He declared "the end from the beginning and from ancient times things not yet done." (Isaiah 46:9-10) He declared it! He declared all things not yet done before they would happen. He wrote every day of our lives "when as yet there were none of them." (Psalms 139:16) This is predestination. It is a script that is being played out according to His purpose and for His glory. Predestination is not a discovery of people's choices through His divine foreknowledge. It is a sovereign ordination of things not yet done.