Over the past few months, Mexico has stepped up efforts to stem the flow of immigrants. In May, authorities detained nearly 23,000 migrants, triple the number in January and about twice the monthly average in the first five months of last year.