Does having sex on you period can cause infertility for men

I asked my science teacher (sex ed)about whether it is healthy or not to have sex on your period

And he answered:it's not generally dangerous for women but it's very unhealthy for men :it causes infertility

And I was so 😲😮😵😵😵😵😲😲😲😲

Is this real guys because I searched for it a little in the internet but I only found tips on having sex on your period