Remember to take shitposts seriously, it’s what the cool kids are doing
Publicly shun people. You’re a rule breaker? You’ve been shunned by society and people who associate with you will be known associates of the shunned.
And further to that we have voluntary prison. Essentially, if you’re guilty of something and want to have the benefits of this society, you need to agree to a loss of some privileges - in whatever form is necessary. If you won’t, well good luck surviving when nobody will trade with you or let you live near them.
If you won’t agree to that, you can leave, but the full details of your trial and conviction are public and your decision to leave will be broadcast, so our neighbours know to look out for you.
That means trials will need to be fair, and seen to be fair, or else it will be easy to ask for asylum. Prisoners need to be fairly treated, or they will try their luck in a nearby place.
But if someone chooses to leave and is just trying to run from the consequences of their actions, well they’ll have a hard time being accepted anywhere else.
So what do you do to deal with the situation we see in modern states with an actual centralised “monopoly” on violence: Organised criminal environments that live off exploiting the rest of society?
We’re talking about people that don’t care if you shun them, because they have their own environment, with their own hierarchy and set of rules, and they’re willing to use violence to exploit the rest of society to make a living.
I’m not really sure what question you’re asking. What situation specifically are you talking about? Are we dealing with capitalism from the inside or from the outside? Are you asking about a theory of change, or about how an anarchist region deals with its state neighbours?
These all have answers, similar but different, but I don’t really want to spend the effort answering every permutation of the question I could imagine without knowing what you mean.