In this case,

So is only defined for

but in any case

So i think the lower bound on x is max(z-1,0)

and the upper bound is min(z,2)

for 0 < z < 3

You need to evaluate the integral seperately for the cases where

z < 1

1< z <2

2 < z < 3

....i think