You need to scold your cat very carefully so that it doesn’t harbor a grudge and start taking revenge.
We tell you what educational measures should not be applied to cats.
First and foremost, don't hit your cat, no matter what it does.
Physical punishment can lead to increased unwanted behavior.
For the same reason, you can't shout at a cat. It's enough to reprimand it in a stern voice.
It is also important to remember that punishment must be timely.
If you scold a cat not immediately after the misbehavior, but after some time has passed, it will not understand why it is being scolded.