Attempts to discredit election outcomes can be dangerous and the United States would do well to heed the warnings from history