My husband nearly fell for a scam, but fortunately, the scam attempt had failed.
"My husband nearly fell for a scam"=「私の夫はもう少しで詐欺に引っかかるところでした」
☆"scam"は日常会話で使われる「詐欺」という意味です。
☆"fall for a scam"は「詐欺に引っかかる」という意味のフレーズです。
"but fortunately, the scam attempt had failed"=「でも幸い、詐欺の企ては失敗した」
ご参考になると良いです!