The reasoning for the decline in male primary school teachers (and daycare workers) has very little to do with women in CS. Guys have much more danger points in the legal system when accused of something. The risk / reward ratio is too far gone. This does not happen to women in CS.
The point isn't so much a direct comparison but more pointing out that their are different societal pressures on all of us that influence what we do. A male is less likely to be a primary school teacher because there are many factors that make it difficult for them. The same is true of women and CS. There are various forms of societal pressure that are most likely making CS a harder field to enter.