static int clampedToInt(final long l) {
    if (l > Integer.MAX_VALUE) {
      return Integer.MAX_VALUE;
    } else if (l < Integer.MIN_VALUE) {
      return Integer.MIN_VALUE;
    } else {
      return (int) l;
    }
  }
The value of the long as though it was representing an unsigned integer, however if the value
is out of range it will return the number at the end of the range.

@param l the signed integer
@return The int value, or Integer.MAX_VALUE if too large or Integer.MIN_VALUE if to small.
evm/src/main/java/org/hyperledger/besu/evm/internal/Words.java