WINNIPEG, Manitoba — Almost three months after Bashir Yussuf watched Donald J. Trump win the presidential election, he made his way to Noyes, Minn., where he set off at night into the snow-filled woods and crawled across the unmarked border into Canada.

“I saw what was coming,” said Mr. Yussuf, 28, who fled his home in Somalia in 2013 to make a circuitous, five-month voyage to San Diego, where he applied for asylum but was rejected. “I knew Trump was going to deport me.”

After a three-hour walk, much of it through deep drifts, Mr. Yussuf arrived in Emerson, a small farming town in sight of the snow-swept border with both North Dakota and Minnesota.

Emerson’s 700 inhabitants have long known “border hoppers,” often offering them lifts to the nearby Canadian Border Services Agency office. But they have never seen them coming in these numbers.