It's not sexist to suggest that testosterone impacts the body and mind. Male hormones exist for a reason and one of those big reasons is to impact behavior in various ways, including sex drive.
What is sexist is assuming testosterone is responsible for autism and acting on that 'knowledge' without proof in some manner that impacts other people's lives.