Basically, you just have to learn these as you go. There are no hints in the phrasal verb itself.
For example, "turn on the light" can also be "turn the light on". But if you use "it", then the pronoun must go in the middle: "turn it on".
"Turn on HIM/HER" means someone was attacked by an ally! "Suddenly, the family dog turned on me." (attacked me)
"Look for..." doesn't separate.
"Taken off her boots" and "Taken her boots off" are both correct. However, if the object is unreasonably long or has extra clauses, then it cannot go in the middle. "She had taken the boots that she bought earlier that day and continued to wear for the last few hours off" is just confusing, and incorrect.