It's not okay to hit your children for any reason.
Ray's child lied about doing his homework and Ray finds out about it.
Ray wants to correct his child.
Ray explains that the child's lies only hurt himself and that it's better to do the homework.
Ray takes his child and spanks him, so he won't lie again.
Ray's child understands and does the homework he had refused to do.
The child becomes resentful and starts disobeying Ray even more.