Definitions of illegal
not allowed by the law
It is illegal to sell a knife to anyone aged under 18 and the offence carries a maximum sentence of six months.
There are multiple definitions - click on the translation that matches your context.
违法的 means:
形容词
full
adjective
not allowed by the law
It is illegal to sell a knife to anyone aged under 18 and the offence carries a maximum sentence of six months.