A serial sex offender who thought he had got away with a brutal rape after an innocent man was put behind bars is set to be jailed.