Example is very simple:
a = 2
b = 7
a >= 1 & a <= 10**10 & b >= 1 & b <= 10**2
>False
a >= 1 & a <= 10**2 & b >= 1 & b <= 10**2
>True
This problem came to me as a simple typo. And got me curious. But in the end I can't really understand why does it behave like that?