Seems a bit contrived to be honest. Like there just so happened to be a pervert there and he just so happened to come back in time...
Should have had some foreshadowing in my opinion. Like we see she has a creepy stalker which is why she's so paranoid about him, but when he confronts the guy, after some build up, she begins to like him a little bit more.