Have you not heard of the labor movement? Or abolitionists? Or the founding of this country? Or people fighting against Nazi control of their country?
All of those worked outside "legal" means. The law is quite often irrelevant to what's right or moral, and dying on the hill of breaking the law ensures no change can ever occur when a system or person in power inevitably wrongs people.