The exchange has to qualify first
Section 1031 covers real property held for use in a trade or business or for investment, exchanged for real property of a like kind. The IRS says real properties are generally of like kind whether improved or unimproved, and that the section does not apply to property held primarily for sale. Whether your sale and purchase meet the rules is a question for your tax professional, before you rely on it.
A qualified intermediary and the deadlines
In a deferred exchange the property you give up is sold first and the replacement is bought later, with a qualified intermediary between the two. The IRS's instructions say that if the timing requirements are missed the transaction does not qualify as a deferred exchange. The identification period and the exchange period are the IRS's; the loan has to close inside them, and nothing about the loan extends them.
The loan is qualified like any investment property loan
The lender looks at the replacement property and at you: the property's value and, for a rental, its rent; your credit and your reserves; and, for a conventional loan, your income. Each lender applies its own rules, and the exchange does not change what the lender asks for. Credit to buy a rental property you will not live in is generally business-purpose credit, outside the federal consumer rules a loan on your own home carries.
What the loan does to the tax result
The IRS's instructions say gain can be taxable when money or property that is not like kind is received in an exchange. How the loans on the property you sell and the property you buy figure in is a tax question, and the answer depends on your exchange. Ask your tax professional before you settle how much to borrow.