Predatory publishers usually request payment for publishing, and usually in advance of accepting the article. And, their practices may not include peer-review, and/or not have a legitimate editorial board, and/or not publish high quality papers, etc. See more on the Avoid Predatory Journals tab in this guide.
Legitimate publishers may charge an Article Processing Charge (APC) but only if you want your article to be available open access. The open access APC option will only be available after your paper has been accepted.
With gold open access journals, all articles are open access, but not all will charge an APC. Hybrid open access journals offer the option for open access, but the APC is usually a lot higher, and the journal itself is behind a paywall. More about APCs.
NOTE: Just because a journal is Open Access does not mean it is predatory. Learn more on the Open Access guide.