Only open files from trusted, legitimate sources.
Use apps like The Unarchiver or Keka from the App Store.
Files with names implying they are for cracking software or games are . Before opening:
"Cracking" tools often trigger false positives, but they can just as easily contain genuine Trojans, keyloggers, or ransomware that "crack" your computer instead of the intended software.
Download and install software like WinRAR or 7-Zip (free and open-source). Right-click the file and select "Extract Here" or "Extract to..."