There are more laws than anyone can read, and I would not be surprised if some of them contradict other ones. Tyrants in government probably love this because when they arrest people for despotic reasons, they can make it look legit by finding an obscure law and then charging them with violating it.
But I don't think that is a good reason to avoid perfectly legal and good actions. How sorry a life I'd lead if, on the point of doing some good thing, I thought, "What if a tyrant arrests me!" If you live with a government like that, it's an abusive relationship, and I recommend finding a new country.