If God can stop the devil but does not, then the devil is just another hand of God – Satan can only do what God permits and wants.
Satan is the ultimate fall guy.
Anonymous says we are all tested. Why does a deity who knows everything have to put us to the test? He already knows what's going to happen.
Do not expect mythology to make sense.