Once-routine immigration check-ins become high-stakes calculation as some are detained