Either through activities that severely increase distrust (eg. a Clinton victory followed by dissemination of phony evidence of fraud) or through direct tampering (with vote-counting machines, overseas postal votes, etc). Assassination or assassination attempt would be going over the line.