Usually fellow the steps below of the first method is fine. But in some higher versions of macOS, beyond 10.0.1 or Big Sur
does not work, in my personal expirence.
Restart macOS, press Command+R to go to macOS utilities window.
Click menu item Utilities —> Terminal at top menu bar.
Then input command
csrutil disable
in the popup terminal window. This command will disable the System Integrity Protection.