That we should obey laws whether good or bad is a new-fangled notion. There was no such thing in former days. The people disregarded those laws they did not like and suffered the penalties for their breach.
Where death without resistance or death after resistance is the only way, neither party should think of resorting to law-courts or help from the government.