An offline AI system in the Camera app that detects when a subject is nude, and educates teenagers of the law and consequences of taking and sending nude photos (through a simple pop-up - "Do you still want to take a nude photo? Yes. No), maybe a good idea. If a user ignores the pop-up and take a nude snap of themselves, for whatever purpose that's their right (and their own problem). There's only so much "nannying" people can do with teens and government can do to us adults.
Anything can be politically abused if we, the people, aren't vigilant and allow it to be abused. It doesn't mean we should avoid common sense solutions, just because at some point, some autocrat will abuse it.