Reminds me a bit of the series Gunsmoke, which I recently watched for the first time online. Surprisingly good. Time frame is earlier but the feeling of "frontier justice" resonates.
This is also the overall story arc of my favorite show ever, HBO's Deadwood: a bunch of people, who were all attracted for various reasons to a place specifically because it had no law (the town of Deadwood stood on land that had been ceded by treaty to the Sioux, and was therefore outside the jurisdiction of U.S. law), slowly discover over three seasons all the reasons they actually need law after all.
It's fun to watch a bunch of shady guys realize they have to work together against even shadier guys and form a sort of city council out of a survival instinct.