吐丝自缚

tǔ sī zì fù

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

hoist with his own petard

to spit

silk

(bound form) self; oneself

to bind