The electoral college, as originally conceived by Alexander Hamilton, could have stopped Trump in 2016. If the electors had the ability to freely choose who they wanted for president, but that is no longer the case
Most states award the electors based on the popular vote in their state. And electors are required by law to vote for that. Winning candidate faith of selectors can be removed and replaced, and sometimes even find for not voting. According to state law
The only way around this, this is the national popular volte.Compact, until we can get rid of the electoral college