Validate comparison when creating a Constraint