You should never ever represent yourself in any court proceeding, but especially a sex crime. If you can either afford or borrow the money to hire a private attorney, you should do it; otherwise, you should accept the court-appointed attorney or a public defender rather than represent yourself.