You don't. Hacks target the exchanges wallet by finding exploits and not the user accounts separately. If you want your funds to be safe, use exchanges for trading only and withdraw to your personal wallet.
Yes hacking problem is the major problem in the Cryptocurrency world. I have faced hacking problem a few days ago. My ethe delta account have hacked by illegal person and they stollen my pkt token.