Punishment and abuse

The thin line between punishment and abuse

How do we discipline without demoralising?