If you don't want to receive messages from another users, you can set privacy in settings.
Follow this steps:
- Click on your profile photo in the top panel.
- Find Setting and click in the menu
- On settings page find and click to Privacy and Security
- Then turn settings off where Receive messages from anyone