Punishment is too strong word especially when referred to moulding a child to behave well or have a good character. When a child has done wrong knowledgeably, then the child needs be given some corrections. In some other countries, it is referred to as punishment. How do you give yours?
That’s exactly what I would do.