Now if we could just get a certain bunch to stop clearing out the middle East we wouldn't have this problem to begin with.
easiest way to stop folks fleeing their homes, is to stop bombing them or paying other groups to bomb them. people tend to flee when their country is invaded and bombed from air planes, or when your country is flooded by foreign backed terrorists as in Syria, all so that : "Assad must go!" 10 million people displaced all because the US knows best whats good for Syria and anywhere else with oil apparently.
but seriously, stop bombing, stop supplying weapons, stop supplying money and all those conflicts will simmer down and many many refugees and economic migrants will go back, but by destroying their infrastructure and government institutions, you get the opposite effect, people flee.