Before they fire? I don't know this as a fact but rapists wouldn't want to rape a dead person unless they're just fully messed up in the head..

What I meant was that they'd be busy groping or whatever and wouldn't pay attention to your hand reaching inside of your pocket to get a small bottle of pepper spray. Also, you don't 'lock and load' a spray cannister, just squeeze it.