Clamp min and value values if supplied