Importantly, current members make it their evolutionary determined job to keep out new members.
Then they set up a barrier preventing colonization by other bacteria (colonization resistance - more on this later).