Student Discount programmes from Apple, where available, require that eligible students are enrolled in a recognised higher education programme within the country of purchase.
In most countries, the key to accessing Apple’s Educational Discount programme is being registered with UNiDAYS.
Education Pricing and Student Discounts - Education - Apple
https://www.myunidays.com
You might also consider your device warranty. It is generally recommended that you purchase your device within the country that you spend most time - as this will likely simplify accessing warranty services in the event you should need to so. While Apple does offer an international warranty when purchased in many countries, some countries restrict warranty service to the country of purchase.