Mexican officials and border town residents criticized US President Donald Trump for threatening to levy a tax on cars crossing into the United States to fund his signature border wall.