Psalm 5:4 For thou art not a God that hath pleasure in wickedness: Neither shall evil dwell with thee.
Don’t be blaming wickedness and evil on God. He has no pleasure in it. He will not allow it in His dwelling. He is not evil and He doesn’t do evil.
As you read the Bible learn about the character of God. As you learn the character of God you will be able to recognize false doctrine that would make God the author of sin, wickedness, and evil.