The second you take receipt of the funds from the sale of the first property you cannot do a 1031 exchange. The qualified intermediary must receive them, hold them in escrow and then use them to fund the purchase of the second property.
It’s not hard to find people who can do the intermediary part for you but not doing the above is by far the most common mistake everybody runs into with a 1031.