Part of doing the time for the crime is losing many of your 'rights'. Part of the loss of rights desire is to change
behavior in order to gain them back, whether it works or not is another question.
If you had your 'rights' it wouldn't be prison!
Try giving your kid a 'timeout' and let him do whatever he normally can do. Just call it a timeout. See if he changed his behavior.