is the following sentence punctuated correctly

The sign "warned us not to go near the water."

Why are you using quotation marks? Are you quoting someone (not yourself)?

If you're not quoting another person or a book, newspaper, etc., then remove the quotation marks. Then the sentence will be correct.