The law of God has both blessing and cursing contained in it.
-> If you keep the law you are blessed.
-> If you break the law you are cursed.
This dynamic makes it appear that God goes from happy to angry with every action we take. Do you see how silly that is? It is as if God is a puppet and we pull His strings by our behaviour.
Not so.