What is Math.clamp?

Use this to get an idea of how clamping works in your situation.