To get the latest version of the game legally and safely, use the official launchers provided by Electronic Arts (EA) or authorized retailers:
Download the EA app for Windows. Search for "The Sims 4" in the store and select the free-to-play version to begin installation.
Use the EA app for Mac (replacing the older Origin client). Search for the game and click "Download".