Have an Answer?
Well, that is a good and bad thing.
In some counties, the military has a tradition of law enforcement. These troops provided law enforcement for civilian area as well as military areas, these troops were know as gendearmeries. They were very common in Europe.
In the United States, the military is specifically tasked with national defense and not enforcing civilian law. This separation is know as posse commitatus act