When you become a parent, or a teacher, you turn into a manager of this whole system. You become the person controlling the bubble of innocence around a child, regulating it.
In the first place I remark that no human law is perfect in its construction or execution.