Buying a used car can be one of the smartest financial decisions you ever make — or one of the riskiest.