Correct

作茧自缚

/ zuō jiǎn zì fù / 
Strokes

Definition

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

Example

Definition

spin a cocoon around oneself—knit a net only to bind oneself; get enmeshed in a web of one's own spinning; be paid in one's own coin

1
Nǐ
你
zhèyàng
这样
zuò
做
jiǎnzhí
简直
shì
是
zuōjiǎnzìfù
作茧自缚
  
。

By doing so, you are just asking for trouble.