It is a contract, which is contrary to law and against the interests of public. It cannot be sustained and does not have legal effect.
Insurance Encyclopedia
Illegal occupation provision (Health Insurance)
A clause that states the insured is not covered for losses that arise if he or she tries to commit a felony. Coverage is also voided if the insured is working at an illegal occupation.