Correct

知法犯法

/ zhī fǎ fànfǎ / 
Strokes

Definition

to know the law and break it (idiom); consciously going against the rules

Example

Definition

deliberately violate/break/flout the law

1
Tā
他
shì
是
jǐngchá
警察
  
,
zěnme
怎么
huì
会
zhīfǎfànfǎ
知法犯法
ne
呢
  
?

Surely, as a cop, he couldn't have broken the law deliberately.