The condition is written as "invalid if missing or less-than minimum or more-than maximum", in other words it's already calculating validity inclusive of the minimum and maximum, as documented (closed range).

Unless I'm misunderstanding the comment?