From a Chabadtalk thread:
Well mcp, just for the record, a few years ago I was driving and I almost crashed because I was driving with my eyes closed, only because I tried to avoid seeing a couple of young women who were very poorly dressed...
I find it extremely interesting. Of course, one is required to be martyred rather than engage in prohibited sexual relations. The gemara even takes it to an extreme where they prohibited a dying man from hearing a married woman's voice. But, in that instance, there was no danger to anyone except the potential sinner. And yet, this guy knows better*... because he's not only willing to risk his own life by closing his eyes while driving, but he's also willing to risk the lives of his passengers and anyone else on the road.
Talk about being a tzaddik on yenem's cheshbon (someone else's account)!
* Actually, he doesn't know better. The halacha is that while you are required to die rather than sin sexually, you are not required (or permitted) to kill someone to prevent them from sinning sexually. If this applies to someone who is actually sinning, it certainly applies to someone who is an innocent passenger in a car or walking or driving on the road. Or that's my take on the matter. However, I'm not a rav. If anyone knows otherwise, please feel free to say so.
Hat tip: OnionSoupMix