造茧自缚

zào jiǎn zì fù

to spin a cocoon around oneself (idiom); enmeshed in a trap of one's own devising

hoist with his own petard

zào

to make

jiǎn

variant of 繭|茧[jian3]

(bound form) self; oneself

to bind