So the object of international law is not to ban “unjust” wars and permit “just” ones, but to assure that wars are waged for limited aims, so that they don’t rage out of control. You have to be able to lose without losing everything.