You have to be careful on the order of in your integral, typically we have

where surface to surface,

where curve to curve and

where point to point.

The order of in gives the direction. So in

the dx first is giving the surface to surface in the x direction. However, when giving your limits (in blue above) is suggests that what you're doing is the following

but we typically write