I’d advise them to plead guilty and accept lesser charges and not go to court. This would be both for my client’s benefit and also for my own benefit, as I would look terrible in court trying to defend crimes like that.
But if I had to go to trial?
I would be personally ethically guilty of evil however. That of apathy.
If at some future time, I was found guilty of crimes for having even defended the man I was required to (due to a change in government or whatever), I would accept my sentencing.