自討苦吃

Idiom

 * 1) to ask for trouble; to make a rod for one's own back