It can be enforced when other parents,teachers,etc... find out.
I will give you all an example, cyberbullying is illegal right? Yet it happens a lot but making it illegal and when caught, punishing offending kids has reduced the volume (where such laws exist). No ominous backdoor involved.