In the end of Parshas Balak (Bamidbar 25:8), Pinchas kills an Israelite who was cohabiting with a Midianite woman in front of the Jewish people.
I understand that the Israelite deserved to be killed as per the halacha of בועל ארמית קנאין פוגעין בו, one who cohabits with a non-Jewish woman is open to be struck by a zealous person. However, did the Midianite woman do anything punishable by death? Cohabiting with a Jew is not on the list of Noahide prohibitions.
One possible approach would be to assume that gentiles have a prohibition of "לפני עיוור", causing others to sin. This would require assuming that violation of said prohibition would be punishable by death. However, some (most?) opinions hold that there is no such prohibition for gentiles (see S'dei Chemed Aleph 26:23).
That being the case, why was killing Kozbi (the Midianite woman) justified?