The best way to avoid a predatory publisher is to have expectations of good service and products.
The Library Guide on Journal Evaluation Tools, which provides a lot of information on journal rankings/metrics, can help you check publisher claims (such as Impact Factors).
This organization has a useful checklist that can be used to see if a journal meets basic publishing expectations. The video, linked below, walks you through the process.
This guide is just that, a guide. Ultimately it is up to each author to make the final decision on where to publish and to decide what they expect from their publishers.
Megan N O'Donnell authored this guide. She would like to give special thanks to Eastern Michigan University Library's Guide on Predatory Publishers which served as a starting point. The graphic icons used on this guide are from icons8. Reuse of the icons requires a link back to icons8.