This is not a formal rule of the international order, but certainly it provides a reference that should be discussed when discussing Israel's wars.
Why the Western powers do not enforce or even encourage the same degree of restraint.