There is no perfect way to know! It takes research. Quality is on a spectrum and there are a variety of tools/measures.
There are many tools for this! You do not need to use all the tools in this list!
There are ways that predatory journals stand out.
This article may help.