That will not work. Safe third country doesn't allow for that.  Before they cross, they are not under our jurisdiction. Nothing we can do. After they cross into Canada, we *can't* send them back if the US won't take them back e.g. if they are on the banned list, or in the US illegally, or if on a whim a US immigration officer deems them inadmissible to the US.