You are experiencing this issue because of a new security feature called System Integrity Protection
You can disable SIP by following the process mentioned below:
- Reboot your Mac into Recovery Mode by restarting your computer and
holding down Command+R until the Apple logo appears on your screen.
- Click Utilities > Terminal.
- In the Terminal window, type in csrutil disable and press Enter.
- Restart your Mac.