It is essential to impose international restraints on the freedom of action of individual governments. These must include restraints on the use of various protectionist measures, and their effective surveillance.
Nation states are a creature of the industrial era. Capitalism required political institutions large enough to oversee and secure broad geographical markets. Now that commerce is moving from the industrial age to the information age and from geography to cyberspace, spatially bound nation states are increasingly irrelevant and without a clearly defined mission.
Juridical restraints alone will not prevent action by sovereign governments in what is considered a crisis.