Relying on unlawful conduct as a defence