作茧自缚

get enmeshed in a web of one's own spinning

zuò jiǎn zì fù ㄗㄨㄛˋ ㄐㄧㄢˇ ㄗㄧˋ ㄈㄨˋ