There’s a difference between wrong, harmful and protective. Children need instruction.
Following God’s laws (written on our hearts) is the best way to remain safe and under protection.
As I teach my kids - when you’re under my authority, you’re under my protection. Step outside of that authority and you’re likely to get hurt. The Law is for your own good.
Coveting, for instance, leads to dissatisfaction, discontent, unhappiness, and often to further sins like theft.