There are many synonyms that encompass the phrase "courts danger," all of which denote an action or behavior that invites risk or peril. Some common synonyms for this phrase include tempting fate, playing with fire, walking on thin ice, running into harm's way, and taking a calculated risk. Other words and phrases that convey similar meanings include flirting with danger, living on the edge, tempting danger, and pushing one's luck. Ultimately, all of these phrases imply a sense of danger, risk, and uncertainty, and highlight the potential consequences that may result from engaging in reckless or dangerous behavior.