Buy them. The Sims titles are sold through EA's own store, Origin, and every major digital storefront, and they go on sale often enough that the discount is rarely worth the risk of a cracked copy.
That risk is real: files pulled from torrent listings and random download sites are a common vector for malware, and the "no virus, takes two days" assurances you see attached to those links are not worth trusting. If cost is the issue, the base games are frequently bundled cheaply, and there are free-to-play entries in the series.