Is this sentence grammatically correct?
I know you wouldn't do this if you didn't think it safe.
I think it should be:
I know you wouldn't do this if you didn't think it was safe
Not a teacher.
The first sentence is fine. The "was" is understood by the reader.