Just because smart people tend to have fewer children (because, for instance, they delay it due to schooling and career demands) doesn't mean genes for intelligence are necessarily being selected against.
In the context of evolution, if something causes fewer copies of a gene, that's what selected against means.