I was quite shocked when my eldest (now 19) came back from school in Y1/Y2 and showed us how she was supposed to literally bellow ‘stranger danger’ if someone she didn’t know and was unsure about tried to speak to her. Obviously that came hand-in-hand with the usual don't trust strangers who wants you to go with them even if they have puppies or sweets, as well as usual slightly creepy videos to illustrate the point.
My (much) younger two seem not to have been taught anything quite so drastic. On the other hand, they have had less freedom and more surveillance by way of phones than my eldest.
But is there any point in teaching stranger danger anymore? When it’s been established that the vast vast vast majority of crimes against children are perpetrated by people they know and trust.