What does "Spare the rod, spoil the child" mean?

Does it mean that
1. you should not spank, but instead spoil from love,
or does it mean
2. that if you don't correctly punish, you will spoil the child?
9 answers 9