prevent what?
There is no check or balance to prevent idiots from becoming president. Only a check and balance to limit the idocy.
President does something wrong? Impeach (possibility of being removed and replaced with VP)
President does something unconstitutional? Supreme court can overturn the decision (also leads to impeachment)
President still acts like an idiot? Congress can refuse to fund any programs sponsored by the president.