From Korean Wiki Project
Affection (love) is at the end of a whip (switch).
Used to explain how a child and a parent or other loved one often become closer after the child is punished for misbehaving.
매를 맞거나 꾸지람을 들은 뒤에 더 사이가 가까워진다.
Spare the rod and spoil the child.