The so-called Demarcation Problem is a little bit later, emerging with Vienna Circle and Popper.
But its origins are in the Tractatus :
4.03 A proposition communicates a situation to us, and so it must be essentially connected with the situation.
Thus, a true proposition is the picture of a fact.
4.05 Reality is compared with propositions.
4.06 A proposition can be true or false only in virtue of being a picture of reality.
Thus, empirical (or natural) science deals with facts (pieces of the world) and its propositions must agree with facts.
4.11 The totality of true propositions is the whole of natural science (or the whole corpus of the natural sciences).
4.111 Philosophy is not one of the natural sciences. (The word ‘philosophy’ must mean something whose place is above or below the natural sciences, not beside
them.)
4.112 Philosophy aims at the logical clarification of thoughts. Philosophy is not a body of doctrine but an activity.
This is the core of Wittgenstein's view about philosophy : either philosophy is metaphysical (to be rejected as nonsense), or it is an activity of "elucidation" (mainly regarding the use of language) that is not "factual" knowledge.
This means that some traditional philosophical problems regarding the foundation of empirical science (like e.g. the ground for the Law of Causality; see 5.135) are not part of natural science.
Compare with Rudolf Carnap's Scheinprobleme in der Philosophie (1928 – translated as “Pseudoproblems in Philosophy”), §7. Factual Content as a Criterion for the Meaningfulness of Statements :
The meaning of a statement lies in the fact that it expresses a (conceivable, not necessarily existing) state of affairs. If the statement expresses a state of affairs then it is in any event meaningful; it is true if this state of affairs exists, false if it does not exist.
Regarding Occam's maxim (more a catchword than a philosophical idea) see 3.328 and 5.47321.