Try extra hard to turn aside from them. A person's thoughts are in his power completely. He can turn them in whatever direction he wants. It may be that at times your thoughts run wild and fly to areas you ought to keep away from. It is still within your power to take them in hand, even against their will, and direct your thoughts to the true path.
Thought is just like a horse which turns aside from the road and tries to go in the wrong direction.
The rider controls the horse with the bridle and forces it to go in the right direction. Out of thoughts such as these there are formed perfect objects which will exist for all time. This means binding yourself and your thoughts to God at all times in order to draw Godliness over yourself. If you do this, all the battles and difficulties in your life will melt away and everything will go your way. This is equivalent to the gematria of the name of God when all the letters are written out in full.