to do sth too confidently in a way that might mean that your good luck will come to an end
tempt fate / providence
to do sth too confidently in a way that might mean that your good luck will come to an end
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition