I would never go so far as to say that films ruin books since they are still two separate entities. I do see your point, though. Films are unable to perfectly capture the essence of a book, and in some ways the reverse is true. I always recommend reading the book first if the book is the original source because, like you said, the film will influence your perception of the book if you see it first.