Just put a brackets and see how its getting evaluated.

Check the output for both the cases below
i=(x<y)<z;
i=x<(y<z);