If God were to prevent humans from doing bad things, then humans would just be pawns or robots. Instead, we have free will.
How do you square ‘free will’ with the claim that everything happens according to God’s plan, and God is all powerful?
Imagine how terrible you’d have to be in order to be all powerful and all knowing, and do nothing about child rape except watch it, over and over and over again, doing nothing. Except watching.