You can manage how people message you. Instead of having it publicly open by default, you can switch it to having it set to friends only, that way; anybody who isn't on your friends list won't be able to message you.
Select [PlayStationNetwork/Account Management] > [Privacy Settings] on your console.
Read up more on thisover here