From skipping legal checks to ignoring the total cost of ownership — the most common mistakes foreign buyers make, and how to avoid each one.