The authority of the parent over his child should be recognised. The greater experience of the parent gives him the right to demand that his children obey him, even if they don't understand why the command is given.
The parent, who dearly loves his daughter, must mix his relief at her safety with the righteous indignation that his informed command was ignored. It was his care for the girl which led him to give the instruction. A mild smack directs a child in the way he must go. Wanton abuse or heavy- handed "justice" from uncaring parents fall into a different category.