Actually that's pretty impossible for a human to do. When your life is in danger you switch to fight or flight - your sympathetic nervous system. There is no room in that mindset for any thoughts beyond preserving your own life. Sexual thoughts only happen when the parasympathetic nervous system is in control - the part of you that is conscious and controlled.