That’s really where punishment (fear) falls down. In the short term, consequences may be or seem inevitable; in the long term, the mischievous or criminal or anxious will model behavior to avoid consequences.
Punishment should come after reinforcement - but with equal consistency.