I learned another version of that saying as a child: "A whistling woman and a crowing hen, are neither good for beasts nor men."
Very strange that whistling should once have been thought a male preserve! To paraphrase John Ball: When Adam delved and Eve span, was whistling just done by the man?