I'd tend to go with, how the hell do you make it illegal for a foreigner to do so? They aren't subject to our laws unless they're actually here.
If they're not in our country, are we going to send black ops after them?
The next barrier is free speech. Why shouldn't person X be able to say who they support for POTUS?