It seems that missiles have a larger check radius than their damage radius. If something is 200m away from a homebase, you can shoot it with the smallest radius and not get that error message. Fire something with a 40 radius at it and it will trigger the message/warning that you you can't damage a homebase. The station itself doesn't get physically hit though.
This can have some nasty consequences for auto war declaration.