When you write a double integral, the limits of the outer integral cannot depend on the variable of integration of the inner integral.
So you could make the outer integral covering x from 0 to 1, with the inner integral covering y from x to 1. Or the outer y from 0 to 1 and the inner x from 0 to y. Those give the same result.
