Blocking a user is simple. Follow these steps:
Open the user’s profile.
Tap the three dots (⋯) in the top-right corner.
Select Block this person.
Tap Yes to confirm.
Once blocked, the user will no longer be able to message you or interact with your profile.
If you accidentally block someone, you can manage blocked users in your Settings > Account & Privacy > Blocked accounts section.