Unfortunately, it's computer code and there is essentially nothing that can be done to prevent its use. They can only punish its users, and if we know anything about prohibition, it has (at best) zero effect to dissuade potential offenders.
I sincerely hope nobody uses it to generate porn of real people without their consent. With that said, it is highly likely if not absolutely certain that bolstering authority on this issue will have disasterous effects that last for generations. It only takes a brief glance over history to see why.
We have only barely held onto our digital freedom. They are trying to strip it at turn. Now it's "protect the kids" but we are witnessing the narrative shift in real time.
What I'm saying is don't be surprised if using open source software carries a prison sentence in first world countries in the near future.