I once had a problem with a male neighbor who didn't like that I didn't want what he wanted. One day he put a knife with an opened blade in front of my door, with a small note. I didn't feel it to be a death threat because I couldn't believe it (but I guess it was). Later the police told me I could file a legal complaint about "harassment". So I guess that's an example of harassment in a legal sense.