If you're using the mobile site go to your account page, choose message filters and it's the first filter
Desktop site message filters is on the left of the home page.
Otherwise people can message you if you've mailed them or received messages from them previously