Is it morally dubious to change citizenship to another country? That's literally choosing what laws you follow. What about religions? Their texts used to be laws, and we seem to believe in freedom to choose our beliefs.
I think every citizen has the responsibility to choose to not follow unjust laws.