All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
If this allowance is only granted to the one who is residing in the country and not outside, then it is not permissible to take it or cheat in order to get it, as the Prophet said: "The Muslims should fulfil their conditions in what is permissible." [At-Tabaraani] The Prophet also said: "Whoever cheats, is not one of us." [Muslim]
Allaah Knows best.