If opaque constants are involved we can have an AND with 2 constant operands that hasn't been simplified. If this is the case, we need to modify at least one of the constants if it is out of range. Fixes #142004