作繭自縛

Idiom

 * 1) to act in a way that traps oneself or puts oneself in a difficult situation