System Integrity Protection, SIP for short, keeps even root from changing protected parts of macOS. Some old guides tell you to switch it off, so it’s worth knowing how to check that it’s still on.
One command, no sudo needed:
csrutil status
On a normal Mac the answer is a single line: System Integrity Protection status: enabled. If it says disabled, or lists a custom configuration, someone changed it at some point, possibly you while following a tutorial years ago.
I’d run it when I take over a second-hand Mac, after a guide for some tweak told me to do something in Recovery, or when an app’s installer behaves oddly. It’s a cheap check with a clear answer.
Reading the status is harmless. Changing it is another matter: the man page says csrutil modifies SIP settings and that some of its commands require booting into the Recovery OS. That’s on purpose, so software running in your normal session can’t quietly switch the protection off.
My advice is to leave it enabled. If a tool says it needs SIP off, look for a version or an alternative that doesn’t. If you really do turn it off for a test, turn it back on afterwards and run csrutil status again to confirm.
Further reading: csrutil.8 man page, About System Integrity Protection on your Mac (Apple)