A Brazilian judge has ordered the border crossing from Venezuela closed to Venezuelan immigrants fleeing their country's economic and political turmoil.
However, the border remained open on Monday pending an appeal by the federal government, and a border official said hundreds of Venezuelans continued to walk across into Brazil.
Federal judge Helder Barreto on Sunday ordered the border closed until the frontier state of Roraima can create "humanitarian" conditions to receive the massive and disorderly influx. But the injunction has not gone into effect yet pending an appeal by Brazilian government lawyers.
Over the last three years, tens of thousands of Venezuelans have arrived in Roraima, overwhelming social services and causing a humanitarian crisis with families sleeping in the streets amid rising crime and prostitution.
The state government on Thursday decreed that Venezuelans seeking medical and other social services in Roraima would have to present a valid passport, which many of the refugees do not have.
Barreto ruled that such a measure was "discriminatory" and countered Brazilian laws.
He suspended a provision that would allow the deportation or expulsion of Venezuelan immigrants who committed illegal acts and ordered the vaccination of those admitted to Brazil.
However, he ordered the suspension of the entry of Venezuelans into Roraima until the state can reach an equilibrium between the arrival of migrants and their exit to other parts of Brazil.
Brazil's federal government has declined requests by Roraima's governor to close the border. Solicitor General Grace Mendonca renewed an appeal to the Supreme Court on Monday to suspend the state decree restricting services for Venezuelans, saying it interfered with federal powers.