I figure since it's a country threatening a company, any threats would be by definition legal, since the country can just change the laws to match the threat
Wait, that's not at all true. A country could change the laws, but it has to actually do that. Otherwise a country would automatically win every single lawsuit it brought forward, which is not the case.
Part of the very reason we even have laws is to limit the power of what the government can do, and protect private entities from government overreach.