Validate minimum/maximum