North Korea claims to be a democratic country, however the government is clearly not elected democratically at all so the acts of of the government can hardly be called "legal". The government of North Korea isn't fairly elected and is probably in power against its citizens' will. The only way they can remain in power is by the application of violence.
Of course, it is still a good idea for North Koreans to do whatever their governemnt calls "legal" given that they have to power to enforce it. But the fact that I have the power to mug the neighbour kid and I call it legal doesn't make it legal.
You're mixing up terminology. Legal/illegal and right/wrong are separate concepts. Legal/illegal is a system of cause and effect: The law says, "If you do X, and we can prove it to this extent, we will do Y to you." Or, "If you fail to X, and we can prove it to this extent, we will do Y to you."
Law does not make something right/wrong. For instance, alcohol is more dangerous to both the individual and society than THC - the active ingredient in marijuana and hashish. Alcohol in moderately large quantities is a poison, whereas THC isn't, it's more chemically addictive and tolerance building, it impairs judgment very similarly to marijuana but has a quality of making people think their judgment isn't as impaired as it is, and is more prone to causing aggressive/violent behavior than THC. In no sane world is alcohol relatively unrestricted and THC is completely prohibited. (For the record, I don't drink or use any recreational drugs) In the United Sates, the law says alcohol is relatively unrestricted and THC is almost completely prohibited. That doesn't get to rightness/wrongness, it just specifies cause and effect.
So law - it's not a right/wrong thing. Is what North Korea did just now wrong? By most people's ethics, oh hell yes it's terrible. But it's legal, because it was signed into law by a body with the capacity to enforce it in its jurisdiction.
Citation? Perhaps sociologists or philosophers accept that, but governments certainly don't. If they did, North Korea wouldn't be generally recognized as an independent country. Since it is, and since the current government there is generally recognized as such, it's legal.
No, you don't have the power. You think you do, until you realise that society actually has the power to stop you, and you are powerLESS to resist. You will find society is typically happy for you to have powers over nothing but your own person and property (an oxymoronic presumption, I know, but adequate), but unfairly try to exert any power over another person and you will find a functional society will tend to react against you and rapidly demonstrate why you are deemed to have implicitly relinquished the power you're now claiming to have, by mere fact of being in your society's jurisdiction.
Especially dictatorships often had and have some kind of law that allows the dictator to do anything. You could call it rule of law minus one. One person who is exempted from the rule of law is enough to bring the whole system down. Strange, how fickle the rule of law seems to be.