Thousands of migrants face dangerous conditions to cross border