Isn’t the USA doing this very thing with sanctions against Venezuela and Iran?
Even if you’re not an American company, you can be punished by the USA for doing business in countries that they have sanctioned.
So let’s not pretend like this is some horrible future, it’s already the present.