Buying Used Car Out-of-State

Hi All, I am negotiating a car purchase (and trade in) with a dealer who is a 4 hour drive away. Is there anything to prevent the dealership from raising the agreed-upon sell price or lowering my trade-in price once I get there? Seems like they have a lot of leverage to change the terms of the deal once I invest a day in travelling. Also - how does one do a pre-purchase inspection in this scenario? Thanks for any advice.