If something frightens the life out of you, frightens the wits out of you, or frightens you out of your wits, it causes you to feel suddenly afraid or gives you a very unpleasant shock.
To frighten someone away or frighten them off means to make them nervous so that they decide not to become involved with a particular person or activity.