Complex sentence: The control of the portal is by thoughts which must be well controlled to prevent unwanted effects.
Split into simpler sentences: The control of the portal is by thought. Those thoughts must be well controlled to prevent unwanted effects.