To me there is a solution to this "illegal" influx of people.  How about authorities when manning these crossings telling these people who are not in danger of any sort in the USA that they will not be allowed to enter Canada and told in no uncertain words "you have to go back where you came from" , and to use the legal ports of entry.  Seems simple to me.