Christian Chavez -- Mexican soap actor turned international pop star -- tried to MURDER his ex-boyfriend with a knife ... this according to court docs filed by the ex-BF and obtained by TMZ.
We broke the story ... Chavez and Ben Stewart-Kruger were both arrested back in April following a domestic dispute at their Bev Hills pad.
After the incident, Ben obtained a temporary restraining order against Chavez -- after filing documents with the court in which he explained:
"[Christian] attacked me, broke down bathroom door, armed with knife, attempted murder."
In the docs, Ben explained, "We dated, I broke up with him, he was required to move out the day before this incident."
"A verbal argument caused this issue. I was locked in the bathroom when police arrived."
Despite Ben's explosive allegations, officials have decided not to prosecute Chavez ... for now at least ... because there wasn't sufficient evidence to back Ben's story.
Still, a judge DID grant Ben's request for a temporary restraining order against Chavez -- requiring him to stay at least 100 yards away.
The two sides are due back in court on May 23.