if ((0 <= x) && (x < 10)) { ...
I visualise the variables as being on the number line. If they’re the way round that they appear in the code, then the condition is true.
Unfortunately my code reviewers tend not to like it when I write constant < variable.
<=>
in mathematical notation, 0 <= i < n is sometimes used for summations where i ranges from 0 through n-1
which is why you always want the larger ones on the right.
if (x > y) x = y;