At Romans 13, Paul states:
All of you must obey the government rulers. Everyone who rules was given the power to rule by God. And all those who rule now were given that power by God. So anyone who is against the government is really against something God has commanded.
This sounds like the medieval European doctrine of divine right of kings.
Yet John 12:31 seems to state "the ruler of this world" is Satan and Matthew 22:21 more unambiguously states:
Give to Caesar what belongs to Caesar and give to God what belongs to God.
At John 18:36, Jesus famously states:
“My kingdom does not belong to this world. If it did, my servants would fight so that I would not be handed over to the Jewish leaders. No, my kingdom is not an earthly one.”
Since in my eyes the rulers of this world, throughout history, have often done some very evil things (such as genocide or mass murder millions of people), or even done things such as destroy the Jewish temple in 70AD & persecute the new Christian church, how is Romans 13 to be understood, particularly in contrast to John 12:31, Matthew 22:21 & John 18:36?