These are questions about style rather than about grammar. When you combine a 'normal' verb (like 'harrass') with a verb that requires a preposition (like 'swear at'), it's usually better style to put the verb with the preposition last. You have already figured that out because you said it sounds more acceptable that way.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.