When sued for refusing to pay for services provided by a prostitute, the customer raised the defense of illegality.
The criminal was aware of the illegality of his act.