Heard things [object-を] anything-and-everything believe must-not.
なんでもかんでも is an emphatic expression meaning 'any and every thing' or 'indiscriminately.' ~てはいけない expresses prohibition — 'must not do.' The sentence teaches critical thinking through a simple grammar pattern.