Ivanka Trump Ivanka Trump

A self-described celebrity stalker threatened to commit suicide in Ivanka Trump's jewelry store in messages sent to Trump and her husband Jared Kushner via e-mail and Twitter, prosecutors said Thursday, according to The Associated Press.

Justin Massler wrote that, unless he received an autographed photo, he would kill himself at The Ivanka Trump Collection store in New York, "or my only other option will be to simply stalk Ivanka Trump in a maniacal manner for this picture by becoming nothing other than a deranged celebrity stalker," according to court documents obtained by the AP.

"I won't just be ignored," Massler, 27, wrote in an e-mail last August to The New York Observer, the newspaper owned by Trump's then-fiancée Kushner, according to the documents.

Watch photos of Ivanka Trump

Massler's lawyer, George Vomvolakis, told the AP that the messages did not amount to crimes and that his client "at no point intended to follow through with any of these comments."

Massler did not enter a plea on Thursday and was released on $10,000 bond, with orders to seek psychiatric care as he awaits trial. Manhattan Assistant District Attorney Lucrece Francois told the judge Thursday that Massler had stalked Trump for approximately two years.

Trump, 28, currently co-hosts Celebrity Apprentice with her father, Donald, and brother, Donald Jr.

Watch full episodes of Celebrity Apprentice

Massler also sent Twitter messages directed at Trump, saying that his dream was to marry her, but he also called her "a diseased elitist," according to the court papers. Massler also directed tweets to Kushner and his newspaper, telling him to "surrender" a Fifth Avenue office tower and talking about "commandeering" the newspaper, according to documents.

Massler's attorney argued that his client never came close to Trump, and that he only attempted to send her an $800 pair of earrings. Vomvolakis also said Massler had dealt with psychiatric problems for years and spent time in a mental hospital.

"He's got a very eccentric sense of humor, and he thinks it's funny, declaring himself a celebrity stalker," he said, according to the AP.