That is actually a federal law. But wow I am surpised I think at most post offices they have a sign on the door. Maybe since you did not have a gun and only a knife it was fine. I am gonna read...
If one feels onself to be at risk, one should place one's genitals on a tree stump, and use the machete to pre-emptively amputate them. One is too grossly stupid to reproduce.