Anfonwch hwn fel neges destun: Evolution of magnetic interactions in a pressure-induced Jahn-Teller driven magnetic dimensionality switch