tempt fate
US /tɛmpt feɪt/
UK /tɛmpt feɪt/

1.
to take an unnecessary and foolish risk that could lead to a bad outcome
:
•
He decided to drive home after drinking, really tempting fate.
•
Leaving your door unlocked at night is just tempting fate.