Boy a brain bender right there, Bojan !
Seems to me there's space between the atoms. Wouldn't this get reduced as the volume decreases ? If so, then the atoms get closer together hence the pressure and temperature (energy) goes up ?
I dunno .. very interesting …
Cheers