At your prequalification interview, be honest with your banker about your finances.
Secure your financing first before you go searching for a home.
Find a real estate agent you are comfortable working with and only work with that agent.
Don't spend all of the money you qualify for, save some of it for additional expenses.