"Spare the rod, spoil the child"? What does that MEAN?

I used to see this statement as we should spare the rod and spoil our children. I have seen on here that people see it as if we spare the rod, then it will be spoiling the children. I am confused. Which is it?
11 answers 11