Countries can attack others. There is not like a superset of a country over all countries that says what is and isn’t legal. All we have are agreements and treaties.
Not that we would or should but the US could attack any number of countries today and only if one or more countries stopped the US would the victor be able to say it’s illegal.
Not that we would or should but the US could attack any number of countries today and only if one or more countries stopped the US would the victor be able to say it’s illegal.