There are several theories in religious texts that dont do this, dont do that…. or God will get angry. If God gets angry you will have to bear his wrath, or he might also kill you because you have done sin.
Well let us understand what God is.
Definition of God-
God is the consciousness that was never born or will never die.
He was always there in the past, is in the present and will always be there in the future.
God is formless, but has infinite forms etc.
This is the basic definition of God according almost all religious texts across the world.
So the one who created this universe also created good and bad feeling, he himself made anger, envy, jealousy etc. As according to the definition there is nothing in this cosmos that he didnt create. So the bad emotions were also his creation, then why in the world would be get angry on you for doing bad. And well God is always perfect and always true. The feeling of anger arises when there is some weakness within us that we cannot bear to see in others. Then how is God, who is perfect can even get a feeling like anger?
God made all the good and bad, and he made bad things. people etc but made the good people only more powerful. Because he always wants good to win over bad.