How to determine a safe red-line?

What is your cam rated to? If it's 5800 set a rev limiter to 6000. Why because your cam is don't giving and there's no point really going past that.