If it's a law that's unpopular enough, it's not enforceable pretty much anywhere. Even less so in the US, because of the staggering number of civilian owned guns.
Tanks can go through some of the doors, especially as long as you know there isn't a basement. So if you have a small segment of a population you need to go through doors on, sure.
But if it's enough of the population, then tanks don't work to enforce the laws.
It doesn't scale.
The military as a whole doesn't work well as a police trying to enforce laws, but even if it did, it wouldn't be the tanks. It would be door to door with infantry.
And 7000 IFVs, and 15,000 APCs, and 25,000 Mine Protected Vehicles, and also a bunch of fixed and rotary winged piloted and unpiloted aircraft carrying PGMs, all of which can go through specifically chosen doors, and, as with the tanks, all of which can send something through many specifically chosen doors (or windows, walls, whatever) in a fairly short period of time.
Not good for arresting people, bringing them to trial, and providing due process, but that's not the only means of raising the expected cost of non-compliance with the law so as to coerce compliance.
It's a volunteer force. Might simply refuse the orders as unlawful, might repeat 1861, depending on the law.
I'm told "fragging" comes from the weapon of choice used by conscripts in Vietnam against unpopular commanding officers.