GitHub #8: Clip value to min/max range