Constrain integers to [-2^53 -1, 2^53-1]

Constrains integers to the continuous range and matches ECMA Script Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER