Knock Some Sense Into

What does the idiom “Knock Some Sense Into” mean?

Definition:

To beat someone in order to teach him/her a lesson. May be used figuratively.

For example:

“When I was little and behaved badly, my father could be counted on to knock some sense into me.”