Clamp
Clamp value between minimum and maximum.
a if x is less than a, b if x is greater than b, otherwise x.