Somewhere I have a .sig that notes that the actions of all government are more easily understood when it is realised that government itself is simply a self-legalising protection racket.
The only differences are the extent of the powers it grants itself and the location and enforcement of the lines, legally defined or otherwise, that it dare not cross.
We are somewhat out of the EU, because in the last resort parliament did not dare to completely ignore the will of the people. It tried, very hard, but in the end it caved.
And so too did Brussels. Brussels itself did not dare - at least initially - to be seen to be contravening international law and breaking a treaty with et ink still wet on the signatures.
Democracy just about works.
Parochial sheriffs who don't want strangers can make it very unpleasant for them. It is then up to whether or not the town as a whole approves that policy.
The Jesse Stone movies-for-tv show that relationship really quite amusingly