Inspection Woes

I keep running into the same problem while trying to purchase a used car: pre-purchase inspection woes. I find the car I negotiate the car with the AI I get a good price out the door, and then when I do the pre-purchase inspection I find out the car will be a money pit. The last car this happened to (there have been three so far) was a car I thought was so perfect for me and I was so excited to buy that I even brought my trade in to the dealer before driving the car to the mechanic for the inspection. The mechanic found actual safety issues with the car involving the brakes, the rear shocks, and all four tires along with engine issues that the dealer had only fixed half-way. The total amount of repairs needed was almost $3,000! I tried to get the dealer to either do the repairs themselves or negotiate even lower price, but since I had gotten such a good deal by using the AI negotiator they were unwilling to do either one. I don't know how to move forward from this; do I negotiate as low as I can go or do I negotiate with $500 or $1,000 wiggle room in case there's something that needs to be fixed?