trigger: set the lower/upper bound of int comparisons considering its logical type