In contemporary English. it is almost always used with "of" + the object. - Beware of the dog. Beware of Greeks bearing gifts.
In older English, it was often used without "of": Beware the Ides of March. (Shakespeare, Julius Caesar) I sometimes see it just as an imperative, with no object - "Beware!"