If you connect to your own Electrum server there is no problem. A serious amount of Electrum servers are set up by the hackers presenting a needed wallet upgrade announcement in your wallet. If your wallet connects to one of those, you get this announcement in your wallet. If you click on it, you download a malware version of the Electrum wallet. Beware, and always download wallets from the Electrum.org website itself.