Validate port range for SecurityGroup