He forbids men from having long hair in the fashion of women. Not from having long hair. If that were the case almost every early convert from then up until the late 1800s and among today's entire orthodox priesthood would be committing a sin with their hair.