Environment and the struggle to survive in them over time did play a role in intelligence, there is really no getting around that. And that is where it starts to get uncomfortable in most cases at least in my experience. Context has to matter or else this becomes taboo.