Risk of filing the WoM: It doesn't force the consulate or the Department of State to approve your application - only to make a decision. That being said, generally the only real risk associated with it is that a significant amount of time needs to have lapsed prior to filing it or you're very likely to lose in court. The Department of State has people from the U.S. Attorneys Office fighting the majority of these lawsuits. The longer you wait, the stronger your lawsuit.
In terms of the standards for denial:
Both USCIS and consular officers need valid and substantial reasons to deny a marriage-based green card application. These reasons must be grounded in U.S. immigration laws and regulations.
USCIS tends to have a more structured process with formal denials and the possibility of appeals or motions to reopen/reconsider.
Consular officers have broad discretion and their decisions can be more difficult to appeal. A visa denial at a consulate typically requires the applicant to address the specific reasons for denial and potentially reapply.
In summary, while both agencies must have valid reasons for denial, the processes and authorities differ. USCIS operates under a more formalized process with opportunities for appeals, while consular decisions are discretionary and generally more final.
There is also the note of dual intention: You're not meant to travel to the United States on a non-immigrant visa and have the intention of applying for an Adjustment of Status to stay.
"You cannot enter the US on a nonimmigrant visa with the preconceived intent to remain and adjust status, but if you enter the US and then change your mind, or your circumstances change, then adjustment of status is an option.
It should be noted that intent alone cannot be used to deny an application for adjustment of status if it is the sole negative factor (see Matter of Battista)" - See General FAQ for AoS: https://www.visajourney.com/forums/topic/504257-general-faq-filing-for-adjustment-of-status/