In Ko Phangan they even closed the only FX booth where you could get it and they said in the bank they don’t know when it reopens, “3 months, 6 months, don’t know” as they said 😅
Sometimes airlines do these checks before boarding, if you have visa to certain countries, outbound ticket or everything to successfully enter. Rare, but happens. In the past sometimes they even handed over arrival cards on the plane to fill out before landing.