Hhhmmm I can think of a few science fiction novels that have warned us of this ...
Brave New World by Aldrous Huxley for one
Brave New World is a dystopian novel by English author Aldous Huxley, written in 1931 and published in 1932.
Largely set in a futuristic World State, whose citizens are environmentally engineered into an intelligence-based social hierarchy, the novel anticipates huge scientific advancements in reproductive technology [artificial wombs or incubators], sleep-learning, psychological manipulation and classical conditioning that are combined to make a dystopian society which is challenged by only a single individual: the story's protagonist - John the Savage.
The novel opens in the World State city of London in AF (After Ford) 632 (AD 2540 in the Gregorian calendar), where citizens are engineered through artificial wombs and childhood indoctrination programmes into predetermined classes (or castes) based on intelligence and labour.