there are two issues 1) triggers when value is equal to min or max 2) See screenshot 
there are two issues