Microsoft Office for Mac provides a feature to set a password to a word file.
Open the word file --> File --> Save --> Select Options
Select Security from the left side --> Full protect password into Password to open fields.
Click on Protect Document then click OK button. Done!