As with most of our generation, I was warned about accepting lifts from strangers and even refused a lift from a neighbour as a child. I was also terrified by an attempt by a kerb crawler when walking home from secondary school.
However, in more recent years, I was out on my motorbike and had to abandon it at the side of a country road due to a sudden totally flat tyre (caused by a nail - grrrrr). Finding I had the wrong number on my phone for the breakdown service, I was trudging along the road home when a disreputable looking van pulled in beside me and I was dreading how to deal with the possibility of being offered a lift. I was slightly relieved that it was a woman who was driving, who said she guessed it was me who had abandoned "that gorgeous bike", said she had also been a biker and knew well how dreadful it was to get a puncture and asked if she could drop me off somewhere. (There is an unofficial 'policy' within the biking community to support fellow bikers in trouble). She duly did at what I thought was the nearest garage, and I then gratefully accepted. It turned out it was no longer a garage but instead a car wash, and for the 2nd time that day I accepted a lift from a stranger - one of the staff at the car wash, who had a portable air compressor and who took me back to my bike and filled up the errant tyre with enough air that I managed to get to the garage I take my car to, which was on the way home, and I was able to scrounge another tyreful of air to get home.
So to answer the OP, I actually don't know what I'd have done in your scenario!