Language:
Free Online Dictionary|3Dict

造茧自缚

Source : CEDICT

to spin a cocoon around oneself (idiom); enmeshed in a trap of one's own devising/hoist with his own petard