Offline wallets, keeping coins from any internet connection and hardware wallets are very important. This is clear that whatever you do, you will never be fully safe so the most important thing not put everything in one basket.
Nice teaching but I will like to add that cold wallets from exchanges are a very good way of storing your coins from any kind of attacks. some exchanges give you cold wallets to store yourcryptos that are not needed atm. Look for that.