means that
arrogance and excessive confidence can cause people to underestimate risks and make mistakes that lead to their downfall.
also
Pride comes before a fall.
The saying “Pride goes before a fall” can be used when pride, arrogance or overconfidence might lead to a disaster.