As an English major, I’ve been pondering that subject myself. Is it right to read something that may lead to sin, if we’re required to do so as a class assignment? Because, quite frankly, many writers have dirty minds…
But…it sounds like you have some options. A) you could finish reading it since you’re almost done, and try to suppress any sinful thoughts, if that works for you.
B) Or you could skim over the parts that are disturbing to you, and just make sure you’re well-versed on the whole theme and everything for your teacher.
C) I know this is a pain since school’s so near and you’re almost done, but since you chose this book, could you possibly choose to read a different book? That would be a sort of sacrifice, but a good and worthy one, to save your soul.
D) If there is no other good book, you could suggest to your teacher that you read a different (and cleaner) book that covers the same theme/idea/author. That way you’re not trying to weasle out of an assignment; you’re offering a compromise. If your teacher won’t let you, try one of the above suggestions
E) Worst case scenario, I wouldn’t advise it, but…you could not do the assignment. Think thoroughly about how that would affect your grade, and if it’s a few points, then you could do extra well on the other assignments, get attendance credit, do extra credit, etc. to make up for it.
Anyway, that’s my battle plan

I hope this helps