def check(self, value):
        """
        check if a value is correct according to threshold

        arguments:
            value: the value to check
        """
        if self._inclusive:
            return False if self._min <= value <= self._max else True
        else:
            return False if value > self._max or value < self._min else True
check if a value is correct according to threshold

        arguments:
            value: the value to check