Can you elaborate? I'm honestly at a loss as to what you're suggesting? Is it just that we should have extremely long jail sentences and/or executions for petty crimes, or is there some other option I'm missing?
Crime, as with most things, follows a power law distribution. Almost all crime is from extremely predictable repeat offenders. You could eliminate over 80% of crime just by enforcing a 3-strikes policy. https://inquisitivebird.xyz/p/when-few-do-great-harm
A frustrating thing is that it's completely optional to live in a society where this is a problem. We know how to stop this from happening. There are places where you just don't have to live in fear of some low-life breaking your window, and we have the technical ability to replicate those conditions in any moderately-wealthy country, if we aren't prevented from doing so.