Of the following sentences, which one is grammatically correct?
You should not walk at night yourself.
You should not walk at night by yourself.
If you mean "alone" then "by yourself" is correct.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.