At least one of temperature and pressure of box A should
be higher than its couterpart of box B.
I prefer these:
Compared to Box B, Box A should be higher in temperature or pressure.
Compared to Box B, Box A should be higher in temperature or pressure or both.