Here's how you can to keep your account safe:
You can restrict the commenting from the desired post on your profile by clicking it.
Click on the three dots in the top right corner.
Go to the commenting option.
Currently, you can choose from the three options that are given as Public, Friends, or Pages and Profiles.
If you choose this option, no one except the selected people can comment on your post.