Deu 22:5 The woman shall not wear that which pertaineth unto a man, neither shall a man put on a woman's garment: for all that do so are abomination unto the LORD thy God.
When this was written men and women dressed very much alike. Wrap or robe type garments.
I have told this story before.. Dad thought girls wore dresses end of discussion...

Being a tom-boy i spent much time head over heels literally. Dad gave in. A few years later he and i had a 'discussion'. He was using that scripture to get me back into dresses.... I politely asked him if he would wear a robe? We never had need for more discussion....
We all know when what we see when we see a male or female dressed as the other sex.... it not just pants or shirt.... Shina Twain looks very much like a woman in his white shirt....
2Co 3:6
Who also hath made us able ministers of the new testament; not of the letter, but of the spirit: for the letter killeth, but the spirit giveth life.