Correct

作法自毙

/ zuō fǎ zì bì /
Strokes

Example

Definition

make a law only to fall foul of it oneself—be guilty of what one preaches against; be hoisted by/with/on one's own petard; get caught in one's own trap; build a fire under oneself