God is omnipotent. God knew that Adam would sin. Before the world was created Jesus knew that He would have to redeem Hans from the death penalty.
The wages of sin is death, and sin is the transgression of God's laws.
Of course God knew that Adam would disobey Him. But in God's ultimate plan this was necessary.
Before humans or animals were created Satan and the angels under him were placed on earth to put the finishing touches to it, like icing on a cake.
Remember that God is a Creator. One could say that creating is God's occupation. After humans are resurrected into the God family, they will also create.
Along the way Satan (who is the most powerful being that the Word could create by fiat) became vain and conceted. He too wanted to be worshiped.
Satan didn't stand a chance, but from the fact that he thought he could overthrow God we u/s that he is extremely powerful.
God could have destroyed Satan at that time, but God had a better plan.
Satan's way is the way of "get." It is self- centered and appeals to the vanity in each of us.
God's way is the way of "give." It is outgoing love and concern for others.
God explained to Adam that He (God) only knew the way to true happiness, but He also knew that Adam would have to experience the differences the two ways.
God is not out to save the world during this present age. He is allowing all of us to experience the way of "get" ant the depravity that comes with it.
Satan is still the ruler of this world, during this present age. He and his way is the root cause of all human misery.
But, his time is running short. Christ will soon return to establish His Kingdom on earth. Everyone who God called out down through the ages will the be resurrected and rule with Him. Each will fill a position in His government.
Every human who has ever lived will be resurrected (in the 2nd resurrection and told that they deserve the death penalty, but that Christ Himself has paid that price for us.
Each will then be taught the wats of God. They will also have access to His Holy Spirit and it's power to transform their lives.
.