It entirely depends on who you think "we" is in "we should make X illegal".
The full quote is "we should make X illegal for countries to (...)".
What kind of democratic process do you expect to follow to make something illegal for countries to do anything when they didn't voted for it?
Your comment is self-contradicting. If you expect solutions to work at a democratic level, you cannot advocate for a solution where a random third-party is able to force it's will upon any country. For instance, where do you fit in your mental model a scenario where a democratic country decides via referendum to meet all it's energy needs with coal?