Perhaps. But if you anticipate such an attack, then you go on the offensive and you make use of whatever is available to destroy your enemies. Someone one said "the Constitution is not a suicide pact". Your interpretation of the Second Amendment should not require that I remain weak in the face of a recognized threat.
In wartime, or in a period of civil strife. If, however, you are in a functioning society, you summon police assistance, and you will thusly increase your ranks substantially.
But, you will counter, what if the access to your property is disabled, rendering the police unable to get to you? Well, I respond, perhaps they will airlift reinforcements in. But, you offer, suppose they had a Stinger MANPAD missle? ....and this is exactly why it is not wise to get sucked into these hypothetical situations when engaged in a logical debate.