Thats bullcrap.
God commanded them not to sin but they did, so He punished them. It's called disipline. The same way parents whoop their children when they do something wrong.
If they had done what God, the Father, commanded them too, He wouldn't have had to "cause people harm and suffering" in your words.