I agree with Roberto that if you're on the threshold, best to play it safe and do the backdoor. I would add though, that if you believe that traditional contributions are much better for you (not gonna wade into the traditional vs Roth debate right now, I'll just assume you've run the numbers and prefer traditional), it might be possible to set yourself up for a traditional contribution but be prepared for a backdoor Roth if necessary.
First, make sure your 401k(s) allow IRA rollovers INTO the 401k. I had to call Fidelity and speak with an actual human to get this info about my 401k. If your 401ks don't allow it, just do backdoor Roth.
Second, contribute to a traditional IRA normally, but keep track of contributions vs gains over the year.
Third, at the end of November 2026, take a look at your income. Hopefully by that point you'll have a good idea of whether you'll be over the threshold. If you are, then roll the GAINS into the 401k, and convert the CONTRIBUTIONS into a Roth IRA. If you're below the threshold, then boom you've got a traditional IRA contribution.
And finally I would note that there's no rule saying you can't do a backdoor Roth IRA until you are over the threshold. If at the end of November you find that you could make a deductible traditional IRA contribution but would rather do a Roth, you can still do the backdoor method. Or if you find that you're over the limit for a deductible traditional contribution but under the limit for a regular Roth contribution, you can still do a backdoor Roth instead of a regular Roth.