Confused about full nodes (

What if the first node I connect to when starting up mine for the first time is compromised in some way. Then I start downloading the blockchain from him and I am never on the real Bitcoin network. How is this prevented from happening? How would I know that this has happend? I am considering switching to Bitcoin Core from Electrum and this though came to me.