How an ideal gas differs from a real one
An ideal gas can never be liquefied: with no forces between its molecules, nothing could hold a liquid together. It obeys \(PV = nRT\) under all conditions, and its internal energy is purely kinetic. A real gas has molecules of finite size that attract each other at short range, turns to liquid when cold or compressed enough, and departs from \(PV = nRT\) as it nears those conditions.
Where real gases go wrong
Compress a gas until its molecules are nearly touching and they resist further squeezing: the pressure is higher than the equation predicts. Cool it until the molecules move slowly and the attractions between them start to matter, pulling them back from the walls: the pressure is lower than predicted.
Ordinary air is nearly ideal
At room temperature and atmospheric pressure the molecules occupy about a thousandth of the volume, and room temperature is far above the boiling points of nitrogen and oxygen, near 80 K. The equation is good to a fraction of a per cent.