It's true that God hates sin -- because every sin is an act of rebellion against Him. The Bible says, "'Do not plot evil.... I hate all this,' declares the Lord" (Zechariah 8:17).
But God also hates sin because He knows it destroys us -- and He doesn't want that to happen, because He loves us! If you are a parent, you know that your children would be in great danger if you simply ignored them or allowed them to do anything they wanted to do. But you love them and don't want bad things to happen to them -- and because you love them, you give them rules to follow so they won't get hurt. The same is true with God.
Listen: The most important truth you will ever discover is that God loves you. God doesn't hate you; He loves you! If God hated you, why would He send His only Son into the world to die on the cross for you? But Jesus Christ did come, and He did die for you -- because God loves you. The Bible says, "This is love: not that we loved God, but that he loved us and sent his Son as an atoning sacrifice for our sins" (1 John 4:10).
Don't be a prisoner to fear any longer, but by a simple prayer of faith turn to Jesus Christ and accept the free gift He offers you -- the gift of salvation. Then thank Him every day for His great love for you.