No regulation shall apply to or be enforced against a person who is not a citizen, national, or resident alien of the United States, unless in accordance with generally recognized principles of international law, an agreement between the United States and the foreign state of which the person is a citizen, or an agreement between the United States and the flag state of a foreign vessel, if the per