Any increase in the frequency of collisions with the walls must lead to an increase in the pressure of the gas. Thus, the pressure of a gas becomes larger as the volume of the gas becomes smaller. The average kinetic energy of the particles in a gas is proportional to the temperature of the gas.
Hope my answer helped u :)