Gatekeeper has been an essential part of macOS for years.
We highly recommend you reinable the default security settings if you chose to follow this guide at your own risk. Warning: This terminal trick disables important security aspects of Gatekeeper, which leaves your Mac vulnerable to malware. Specifically, Apple's decision to make Gatekeeper even more difficult crack is a significant step forward for everyday Mac users. However, because security is a tricky business, so-called improvements for some might not work for others.
In macOS Catalina, the company has taken this to all-new levels by introducing beneficial security changes that make it even harder for miscreants to play havoc with our computers. Over the years, Apple has put its vast resources into making it's operating systems more secure for end-users.