Avogadro's law merely states :
"Equal volumes of ideal or perfect gases, at the same temperature and pressure, contain the same number of molecules."
That doesn't mean all gases are at same temperature and pressure.
It means, that if you maintain 2 gases(say) in 2 identical containers at the same temperature and pressure, then you will find that the number of gas molecules in both the containers is equal.