Psychological warfare works better.
Make a threat and keep it. It’s when you give in that kids rule you.
That is essential. I've seen too many parents warn the kid over and over then do nothing.
I used to tell my son; "I'm going to count to one". That always worked.