be asking for it/trouble idiom
自找麻烦;自讨苦吃
to be behaving stupidly in a way that is likely to cause problems for you
Drinking alcohol before driving is really asking for trouble. 酒后驾车完全是在自找麻烦。
I'm not surprised she lost her job - she was really asking for it. 她丢了工作我一点都不觉得奇怪——这是她自找的。