Sorry if this is anal, but wouldn't 外神 be an outside or foreign god, and not a divine foreigner? I mean, the only reason 外人 means foreigners (as in people) is because of the second kanji, am I wrong?

外人 is basically よその人
Is not 外神 basically よその神?