

Attacking a military ship is generally not a war crime (as defined by international law such as the Geneva treaties, Rome Statute etc…). It is an act of war (same as invasion or bombardment of another country), and is likely to see retaliation by the attacked country.
Aggression (i.e. unprovoked acts of war) is against the Charter of the United Nations, which also includes the International Court of Justice as a dispute resolution mechanism. It is up to the United Nations Security Council (at which the US has a veto) to authorise enforcement of ICJ rulings.
If a nation is acting to protect another nation facing aggression from the US, it would be legal for the attack US military ships. The reason why they wouldn’t would more be that it would likely bring counter-retaliation from the US.
















In most jurisdictions, part of the definition of a not-for-profit (of which a charity is a more restricted subset) is that it doesn’t exist for the benefit of the members / shareholders, or a specific person.
So creating a charity / NFP and asking people to pay into it is usually okay, but the purpose of that charity can’t be to enrich you, and it is a separate legal identity (i.e. taking a charity’s funds and giving it to yourself would be embezzling). Many jurisdictions allow for sports clubs to exist as not-for-profits, but they’d generally need to be for the purpose of organising a whole team to practice, compete and so on.
Generally charities can employ people to do work for them and pay them, but (varies by jurisdiction) they generally need to be not paid above a fair market rate for the work they actually do to advance the goals of the charity.
If the goal is to help a legitimate cause, you could also ask them to donate to an existing not-for-profit for the cause.
Disclaimer: IANAL, and anyway all of this would vary by jurisdiction - not legal advice!