Birth rates are predicted to keep going down though, meaning the supply of immigrants will dry up anyway.
Even when global populations begin to fall, we can still keep immigration up. There's nothing at all inconsistent with falling populations and immigration. Economically there might be a lot of pressure for people in places with falling populations to emigrate, because of the economic effects of sudden population drops.
You're safe for at least 50 years.