Both directions work since the mechanics of Counterspell function based on the spell slot used to cast. Same or better spell slot autocounters; everything else is a spell attack roll against 10 + the spell slot of the the cast spell.
Edit: I probably shouldn’t have use spell attack to describe it but it’s basically the same minus the equipment and ability bonuses that apply to attack rolls specifically.