I looked for evidence on the net with no luck so it is likely a folk tale but I thought the Texas Rangers since the days of the Republic of Texas reserved the right to enter Mexico in pursuit of fugitives. This was supposedly agreed to by Mexico. Nothing on the net I can find so likely a tall tale like many surrounding the rangers.