That was just mental conditioning to ensure that you understood the severity of your actions. So that way when you grew up you would comply with the laws and submit to authority. With the full knowledge that what you do will affect your future should you break the rules.
Overall a a double edged s...