I don’t agree with that (in fact, that specific case is a crime similar to physical aggression in the country where I live).
https://en.m.wikipedia.org/wiki/Criminal_transmission_of_HIV
From what I remember there has been an increase in infected people after this bill. I cannot back it up at the moment, but you might want to look into it.