You also shouldn't cross the road when the pedestrian light is red
there are laws that specifically state that. there are also laws that specifically protect pedestrians and give them the right-of-way.
there are laws in place that specifically state not to break into homes. there are no laws that protect people from burglarizing a home. this is why damages are usually considered a "civil matter" because it's a disagreement between two parties that do not interest the general public.
if you don't want to be shot, don't force your way into places where you will be shot, the law and public opinion will not be on your side.