Same idea, but if a pedestrian is jaywalking across a street, technically illegal and it's not a safe move - but is struck by a car - the car is still at fault. As a driver you are still in charge of driving a 2-5 thousand pound hunk of steel and you accept that risk when you get behind the wheel. So I think logically, what the person was doing was not the smartest - but that doesn't mean they deserved death for it - you are responsible.
Think about it this way - if you hadn't been there driving would they have been fine? If so, you caused it, you're at fault.
Same applies to rape and dressing provocatively. It's an irrelevant argument because it puts blame on the victim, when no matter what they do they don't deserve that outcome. The blame is on the person who caused it in the first place.