You'd be right.
In many of the 'wild' west towns and mining camps, there was no official 'government'. People streamed out west, set up towns and camps, and started living their lives long before statehood or even territory status.
The people held meetings and wrote their own rules, constitutions and by-laws. Everybody in the community knew the laws, and knew justice was swift. If a crime was committed, the culprit was quickly found in the small community. Trials were often held the next day and only lasted a couple of hours, particularly in mining towns. People who agreed to serve on the juries were giving up valuable prospecting time, so there wasn't any fooling around.
Miners would leave pans of gold in their tents, and nobody would touch them because they all knew the odds of getting caught were high, and the punishments were swift and severe. Early western towns and mining camps were generally crime free until courts, lawyers, lawmen, and government regulations and processes took over what the people had established.