The crack uses a TS4.exe or Rld.dll file that antivirus programs (especially Windows Defender) flag as a "Generic Trojan." This is a common to almost all game cracks. Add the installation folder to your AV exclusions before extracting.
The answer depends on your situation.
Buy The Sims™ 4 Get To Work Expansion Pack - Electronic Arts The Sims 4- Get to Work - Games4theworld -
Use WinRAR or 7-Zip to extract the parts. Inside, you will find a Setup.exe (from Games4theworld, not a fake). Run it. The crack uses a TS4
For those who just want to play without risk: buy the game on sale, become a Chief of Staff at the hospital, zap your neighbors with a SimRay, and explore Sixam – all without a single "missing DLL" error. Buy The Sims™ 4 Get To Work Expansion
To maximize your Get to Work experience, here are some tips and tricks:
The Sims 4: Get to Work – A Complete Guide to Active Careers and the Games4theworld Release