The relevant law is 36 U.S.C. 510, which bars direct or indirect contributions or other things of value from a foreign national.
Didn't Bill Clinton gets a whole bunch of donations from the Chinese when he was in office?
Didn't Bill Clinton gets a whole bunch of donations from the Chinese when he was in office?
This is exactly why that aspect of the law exists.