Compressing a gas that is not at absolute zero will increase its temperature because a finite volume of gas at a finite temperature has a set amount of heat energy. when that set amount of heat energy occupies a smaller space its temperature rises. Conversely when it occupies a larger space its temperature goes down. so both laws are reversible.