A gas behaves more closely to an ideal gas at
The kinetic theory assumes, among other requirements -
(i) the size of a molecule is much smaller than the average separation between molecules,
(ii) the molecules exert no force on each other or on the walls except for when there is a collision,
(iii) when a gas is left for sufficient time, it comes to a steady state - the distribution of velocities becomes homogenous and isotropic.
At low pressures, we have molecules further away from each other, compared to higher pressures. At high temperatures, the molecules have high kinetic energies, and move around with higher speeds because of it - this greatly homogenizes the velocity distribution throughout the volume, thus making it a good condition to apply the kinetic theory.