Adds numeric max and min rules.