What challenges might arise in distinguishing between citizens and foreign nationals in border detention cases?

SSB detained 63 Nepal prison escapees, with some claiming to be Indians. I am curious about the difficulties authorities face in verifying identities and the implications for security and human rights.