def add_to_params(self, parameters, value):
        if value:
            try:
                int_value = int(value)
                if (0 < int_value or int_value > 255) and int_value != -1:
                    msg = ('protocol numbers must be in the range 0-255 '
                           'or -1 to specify all protocols')
                    raise ValueError(msg)
            except ValueError:
                if value not in ('tcp', 'udp', 'icmp', 'all'):
                    msg = ('protocol parameter should be one of: '
                           'tcp|udp|icmp|all or any valid protocol number.')
                    raise ValueError(msg)
                if value == 'all':
                    value = '-1'
            _build_ip_permissions(parameters, 'IpProtocol', value)
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/ec2secgroupsimplify.py/ProtocolArgument.add_to_params/swapped operands of `<`