"Candidates have every right to accept donations from foreigners."
"The Federal Election Campaign Act (FECA) prohibits any foreign national from contributing, donating or spending funds in connection with any federal, state, or local election in the United States, either directly or indirectly."
-- Federal Elections Commision
"No man may be be deprived of life, liberty, or property, without due process."
The US Constitution.
Your defense is irrelelvant. No foreigner is beign killed, being cast into prison, nor having their property conficated because they are prohibited from making a campaign contribution to an American election. They are, however, breaking the law.