Clamp the intensity to safe range.