It's already happening in Europe [1] and the Sahara Desert [2]. This situation is already in large parts due to climate change, as the entire Syrian war, for example, can be seen as being caused by climate change [3], and the patterns of migration in Africa are driven by desertification, among other things.
In all of these cases, a large military can secure a border, creating a fortress few, if any refugees can enter. And climate change is going to be the main driver of refugee migration.
[1] https://www.theguardian.com/world/2018/jul/03/mediterranean-...
[2] https://www.aljazeera.com/news/2018/06/walk-die-algeria-aban...
[3] https://news.nationalgeographic.com/news/2015/03/150302-syri...
Israeli don't have to actively kill Egyptians because they, for almost all purposes, can't enter.
Nothing much wrong in having my daughter participate in some wall building.