The best way to stop strangers from messaging you on WhatsApp is to block them when you receive a message from someone you don’t know. This is best as you aren’t tricked into responding to the person or clicking on scammy links.