Buy some hardwallet,install antivirus plus malware and you will be fine do not give your private keys to anyone and most importantly dont be stupid.
actually if you are not inconsequential or reckless, your altcoins will stay safe. but sometimes people will be tempted by the trap of a hacker that even that does not make sense. the important thing be careful and always update your antivirus