It seems that many people don't have the Proper Perspective on why Hashem created the concept of sin, punishment, and judgment.
If Hashem only wants to give good to us, why did He put us in this world and make us earn the great experience we will receive in the next world? Why didn’t He just put us there and grant us that reward right away?
The whole system of aveiros and punishment was created out of love for us and for our best, even if we don’t understand how. Hashem doesn’t hate us for sinning or punish us angrily because He lost His cool, chas veshalom. It would be perverse and insane (and heretical) to claim Hashem really lost control and became enraged. Rather, whenever He relates to us in a way that resembles anger, He does so only because He loves us and relating to us that way is best for us at that moment. He has not left us, even though He is making it hard for us to see Him for whatever reason. When we understand that Hashem still yearns for us, we won’t feel repelled and will continue to try to connect with Him.
In addition, issurim and consequences give us the strength to stand up to desire and reach greatness. Hashem created us to give us the greatest experience ever, and He wants us to be close to Him. By giving us laws we must follow, He gives us the strength to overpower our urges and attain eternity.
Additionally, we must remember that Hashem Himself made our challenges so difficult. He knows how hard they are.
He understands that people mess up, and though of course He doesn’t ignore what we do, He still loves us just as much when we fall into the trap of the yetzer hara. Hashem loves us even if we are swayed by desire and act foolishly. He loves us no matter how far we fall.
Don’t let the yetzer hara convince you otherwise. Any suggestion that Hashem doesn’t love you or has rejected you is a lie. It doesn’t matter how convincing it is because of your sins it is wrong. Hashem still loves you as much as before. Even when you fall flat on your face, Hashem sees every bit that you tried and says, “How wonderful! Look how my children are trying to serve me despite great difficulty!”
Every system Hashem created — including the concepts of sins and consequences — and everything He does is out of love for us and for our ultimate enjoyment. That never changes, no matter what we do.