Better checks on number validation to make sure we do not pass the min or max value