A lot of people who hear the song out of context or read the lyrics misunderstand the intent. I have had to explain it many times to young people who assume this song was in favor of "careful teaching."
In part it is because they recognize that the music is from "the old days" and they know that there bigotry was pervasive then---so they assume advocating for prejudice would have been acceptable.