Riding for a fall

To be risking failure or an accident due to overconfidence.

My friend is riding for a fall if he continues his present attitude at his job.