It depends. I’ve read on FR that men can’t refrain from indulging in any available sex. If that’s a man’s view of himself, then keeping away from any situation in which a woman might throw herself at him is only common sense.
There are also false accusations.
Now back in the real world, I can’t think of any situations in which I find myself alone with a man other than my husband. Even at the doctor, there’s a nurse present (to protect the doctor from liability).
If there is a reasonable choice, it makes sense to go to the more proper “looking” alternative, because you never know who will talk, and that can be a real bear. I’m not saying anyone should go flirt with sin.
On the other hand, it simplifies life to not try to go beyond the bible. Now you don’t have to be concerned about what God really wants and what people who are consumed with show want. Also, God’s directions are based in divine agape love. People think “chaste” love is weak and feeble, but they are not aware of what God can do. God’s love will flood away lust. In the case of the movie, if it weren’t for the bothersome “promise” (and God tells us not to swear any oaths) then human consideration, propelled with God’s love, would have prevailed — and putting the woman outside would scarcely be needed to keep the situation pure.