So you are admitting that god is constrained by forces/concepts external to him.
So... where do those forces/concepts come from? Why aren't they "god"?
Good and Evil is a 2-D concept. It divides the world into two polarized principles. God is actually more 3-D like creation and natural instinct. Natural instinct is morally neutral, while integrating life with nature into 3-D.
In Genesis, this distinction is made via the tree of knowledge of good and evil; 2-D, and the tree of life which is 3-D. Satan is historically, the binarius, or the principle concerned with 2-D. Humans became more 2-D and lost their connection to 3-D, after the fall, when the tree of life was removed from them. Humans downgraded from 3-D to 2-D after the fall.
One important point that is overlooked by most bible scholars is connected to God creating the heavens and earth in six days and then resting on the seventh day. The questions become, how long was the seventh day or how long was God resting? While God rested on the seventh day, who was placed in charge, doing the work of God, during this first Sabbath rest? On the Sabbath, God taught that one is not supposed to work. If work needs to be done it has to be prepared in advanced or subcontracted to others who are not on Sabbath. As God rested others were working for him.
One way to answer the question of how long was the first Sabbath, is to consider the scope of each day of creation; six days of creation, to see when something as epic as each days, appears again. Creating the universe, the heavens and earth, life, etc., is very epic. If it is less epic; like part the Red Sea, than God may still be resting and others with less capacity than God would be doing his work, on the first Sabbath, as God rested.
In my humble opinion, the first epic creation, in par with the first six days does not happen until Revelations, where Heavenly Jerusalem descends from Heaven. What we have is an entire be-jeweled city levitating from the sky. This is in a league of its own compared to various things after the fall from paradise. This should signal the eighth day after the Sabbath ends.
It appears Satan was in charge of the earth and humans while God rested. What is often attributed to God; acts of good and evil behavior, was the work of Satan, as he labored for God as his CEO. Satan was teaching humans 2-D thinking; good and evil, leading to reason; cause and affect.
The atheist argument of a perfect God doing good and evil, does not make sense since God is 3-D. This makes more sense about Satan in the context that God was resting during most of the Old and New Testaments.
When Jesus began his ministry, he went into the desert to pray and fast for forty days. Near the end of his fast, Jesus was visited by Satan, who among others things, promise Jesus the wealth and kingdoms of the world if Jesus would bow and serve him. Had Jesus accepted this offer he would have become the Messiah anticipated by the Jews; rich and powerful able to subdue all enemies.
Jesus did not say, "Satan, you do not have the authority to do this". Jesus knew Satan was in charge of the earth, as God rested. Instead he declined the offer to become something better. He did not judge based on 2-D or good and evil for him or his culture; death. This act of 3-D or integrated defiance with the will of God, changes the dynamics in heaven. Satan would then be driven from heaven, with Jesus taking over his job, sitting at the right hand of power, as God finishes the last of his rest. Perfection and 3-D reappears when Jesus takes over.