自讨苦吃

自讨苦吃 (zì tǎo kǔ chī)
to ask for trouble (idiom); to make a rod for one's own back