its better to use hardware wallets than other wallets such as online wallets, but that doesn't mean you must not use online wallets, the best way you can do with your wallet is to be careful with the passcode or the privatekey do not let anyone know your privatekey, that might be the cause of your loss, and second don't click any suspicious links