“Illegal” in Chinese is 违法 (wéifǎ).
他没违法。
He's not breaking the law.
Example sentence from Tatoeba (CC BY 2.0).