The phrase "tempts gods" is often used to describe an action that is foolish or dangerous, one that could invoke the wrath of the divine. However, there are many synonyms that can be used to convey this same idea. For example, the phrase "plays with fire" suggests that someone is engaging in something that could have dire consequences. Similarly, "dances with danger" and "courts disaster" convey the same idea of tempting fate. Other synonyms include "invites trouble", "defies fate", and "challenges the cosmos". Ultimately, all of these phrases suggest that someone is acting in a way that is both reckless and potentially dangerous.