This is a perfect example of stranger danger, that the kid didn’t get murdered is not evidence of the contrary.
The message is don’t put yourself in risky situations with someone who could be unhinged, and the person was rather. “Don’t trust strangers” is an overbroad statement, don’t allow an adult to tie you up when you’re alone is probably a fairly decent bit of advice.