I would be tempted to say:
Never take anything from anyone *that* you don't know.
Never take something from someone *that* you don't know.
Both sentences are ok however. In particular, the first sentence has more emphasis:
"Never take //anything// from //anyone// that you don't know."