These are as illegal as civil disobedience (refusing to work with cops might be more legal in some countries). As to if they are more or less moral... what moral framework are we using to judge?
I'm pretty sure the Declaration of Independence (1776) was also unlawful as well...
Some do. See: secessionists or separatists. For historical examples, the English religious separatists who moved to Holland. Or the Confederates in the American Civil War.
To be clear, I'm not defending their position or arguing whether or not this is better than civil disobedience, but clearly there is a separatist/secessionist school of moral thought.
The way I see it, we acknowledge that sometimes a government can act outside of it's own boundaries in a repressive manner. That is why we help those who are fleeing persecution based on political activity.
Saying you can't push for change and run away when repression comes would mean that a lot of people I admire, including the Dalai Lama, are bad people. I disagree.