As the prosecution has the burden of proof in such cases, you can protect yourself with the appropriate defense. Innocence is one of the most common forms of defense against sex crimes. If you admit to the actions taken but can prove the alleged victim consented to them, then you may be able to negate the charges. Having a mental disorder at the time of the crime can also serve as a defense against sex crime allegations.