Easy. Don’t have it on your shelves. I read plenty of stuff I wasn’t supposed to but it was all off Dad’s SF shelves (”The Moon is a Harsh Mistress” was probably not appropriate for me at 12). I won’t buy it for her and I won’t allow it into our house so no problem.
A teenage girl will read it at a friend's house if she wants to read the book. Get back to me when she's a teenager. I've been there.