Babak Taherzadeh is a troll.

One of his Twitter personas boasts the bio: "im smarter than u unless you are really smart."

He claims he has a "different sense of humor." He peppers his tweets with profanity. He plays an online character, one he says doesn't reflect who he really is.

That character has gotten him into trouble.

Taherzadeh sits in the Dallas County jail, where he has been since June, held on a felony stalking charge. He is accused of using social media to harass a judge who oversaw a criminal case against him.

Before his arrest, he regularly commented online on political issues and public figures.

Taherzadeh believes he was exercising his rights to free speech and to petition the government when he posted negative comments on social media about a state district judge.

But authorities see it differently. They say Taherzadeh's tweets threatened physical harm.

The arrest warrant affidavit says Judge Brandon Birmingham "is in fear for the life of his family and for his own" because of Taherzadeh's messages and social media posts.

In a time when everyone seems to have an online opinion, when people are emboldened by the anonymity of screen names, the case against Taherzadeh shows the limits of free speech.

The First Amendment protects freedom of speech, religion, the press, the right to assemble and to petition the government, and it prevents the government from punishing people who exercise those rights.

And though hate speech is protected, there is a line when a person's safety is threatened, legal experts say.

"It's always been a huge tension there, the concerns about safety versus having an open dialogue and being able to criticize public officials," said Lata Nott, executive director of the First Amendment Center.

{"type":"video","title":"Dallas News Video","author_name":"Dallas News","_id":"pmNG5yNzE6cdicS_V4tkZ_rPc9PZdm1q","provider_name":"Ooyala","html":"

","raw":"{\"type\":\"video\",\"title\":\"Dallas News Video\",\"author_name\":\"Dallas News\",\"_id\":\"pmNG5yNzE6cdicS_V4tkZ_rPc9PZdm1q\",\"provider_name\":\"Ooyala\",\"html\":\"\\u003Cdiv class=\\\"oo-vid-container\\\" data-oo-content-id=\\\"pmNG5yNzE6cdicS_V4tkZ_rPc9PZdm1q\\\"\\u003E\\u003C\\/div\\u003E\\u003Cscript defer src=\\\"http:\\/\\/www.dallasnews.com\\/resources\\/motif\\/dist\\/js\\/ooyala.js\\\"\\u003E\\u003C\\/script\\u003E\"}","providerType":"ooyala","providerLink":"http://www.dallasnews.com/oembed","embedType":"video"}

Court records show the 46-year-old man used at least 10 Twitter accounts to stalk Birmingham and the judge's family. Birmingham, who presides over the 292nd District Court in Dallas County, had overseen a harassment case against Taherzadeh. The judge declined to comment.

Taherzadeh claims he felt Birmingham had mishandled the case against him and unfairly jailed him. He took to Twitter to express his frustration.

Records show Taherzadeh tweeted on June 8: "Wanna see me bitch slap a State District Judge? I am not one to trifle with."

He also tweeted about Birmingham's wife and children. He spoke out against the Dallas Police Association and a Dallas detective.

Most of his Twitter handles have been deactivated, but at least two remain.

"There were a lot of ugly things, but there's nothing against the law that says you can't be ugly. You can be an a------, and that's what I tend to be a lot of the time, OK?" he says. "But that's not against the law."

He shrugs off being labeled as a troll. He doesn't think his words bullied or threatened anyone. And, he says, most of the time he was just playing a character.

"When I was in his court, I said, 'yes sir' and 'no sir,'" he says. "The way I handled it online, that would not be the way I would handle it with him in person as Babak Taherzadeh."

He says many people say things online they wouldn't say to someone's face, even pointing to President-elect Donald Trump's tweets as an example.

Taherzadeh says he regrets the cruder tweets of his that landed him in jail. He says he didn't mean them to be taken seriously. And while he sits in jail, he most misses his family, a word he repeats seven times.

But his family was afraid of him.

He had grown obsessive about a debt he believes he was owed. His family said he started spiraling after he was evicted and he started demanding money from his brother-in-law, court records show.

Taherzadeh was indicted in April 2014 on a harassment charge for threatening to kill his brother-in-law via text messages. Even after his arrest, Taherzadeh continued to email his brother-in-law.

"I wanted my money, yeah, I was really bothering him about it. I was trying to make a point," he says, but says he would've never hurt his relatives.

In June 2015, Birmingham ruled Taherzadeh had violated his bond requirements by sending more emails to his brother-in-law. As a compromise, the judge ordered Taherzadeh to stay off social media and email, records show.

By September, Taherzadeh was tweeting again: "@radleybalko this guy @JudgeBirmingham is the guy who threatened me with jail for using social media." Birmingham recused himself from Taherzadeh's case in October, and Taherzadeh pleaded guilty to the misdemeanor harassment charge in February. He was sentenced to 100 days in county jail.

But once out, Taherzadeh started tweeting again.

He sent a tweet that included the phrase, "pray for the death of @JudgeBirmingham."

Though he insists he never meant any of his online statements to be considered actual threats, his online statements toed the line of his constitutional rights.

Legal experts say hate speech is protected. Ugly speech is protected. Profane speech is protected. You can criticize the government and public officials. There is even leeway for obvious hyperbole and joking about violence.

"Obviously there is a right to criticize the government, even to criticize the government very harshly and criticize a public official harshly," said Dale Carpenter, a professor at the Southern Methodist University Dedman School of Law.

{"type":"video","title":"Dallas News Video","author_name":"Dallas News","_id":"poNG5yNzE6PwAjePIJlpZk2LGhAbicUE","provider_name":"Ooyala","html":"

","raw":"{\"type\":\"video\",\"title\":\"Dallas News Video\",\"author_name\":\"Dallas News\",\"_id\":\"poNG5yNzE6PwAjePIJlpZk2LGhAbicUE\",\"provider_name\":\"Ooyala\",\"html\":\"\\u003Cdiv class=\\\"oo-vid-container\\\" data-oo-content-id=\\\"poNG5yNzE6PwAjePIJlpZk2LGhAbicUE\\\"\\u003E\\u003C\\/div\\u003E\\u003Cscript defer src=\\\"http:\\/\\/www.dallasnews.com\\/resources\\/motif\\/dist\\/js\\/ooyala.js\\\"\\u003E\\u003C\\/script\\u003E\"}","providerType":"ooyala","providerLink":"http://www.dallasnews.com/oembed","embedType":"video"}

But that right is limited once you issue a "true threat" against any person, even a government official, such as a judge.

"If you put a person in fear that you are going to do them physical harm, that is not protected speech," Carpenter said.

With technological advances, more people are aware of what others are saying online. Facebook and Twitter and other social media platforms are the modern gathering places.

"Now thousands of people can know it and react to it instantaneously," Carpenter said.

And many people believe they are protected from criticism because of the Bill of Rights.

But Twitter and Facebook can censor your posts and tweets. News organizations can delete offensive comments that other readers have flagged as inappropriate or hateful.

"Private persons and private organizations are perfectly free to criticize you for your speech," Carpenter said. "When they are critical of you, they are not violating the First Amendment."

But Taherzadeh isn't mad his Twitter accounts were suspended. He believes he is being punished solely for speaking out against an elected official.

"This is America. This is the reason why my parents put me on a boat and floated me, oh wait, that was Elian Gonzalez," he says, laughing.

Take note of his humor. In truth, Taherzadeh is a U.S. citizen who moved here from Iran with his parents when he was 3.

"You come to America, you think it's all about freedom and stuff and you criticize a judge and you're in jail, I mean, is it only for white people?"

{"type":"video","title":"Dallas News Video","author_name":"Dallas News","_id":"pkNG5yNzE6p17kuSH--n8DDYv0aSLVRH","provider_name":"Ooyala","html":"

","raw":"{\"type\":\"video\",\"title\":\"Dallas News Video\",\"author_name\":\"Dallas News\",\"_id\":\"pkNG5yNzE6p17kuSH--n8DDYv0aSLVRH\",\"provider_name\":\"Ooyala\",\"html\":\"\\u003Cdiv class=\\\"oo-vid-container\\\" data-oo-content-id=\\\"pkNG5yNzE6p17kuSH--n8DDYv0aSLVRH\\\"\\u003E\\u003C\\/div\\u003E\\u003Cscript defer src=\\\"http:\\/\\/www.dallasnews.com\\/resources\\/motif\\/dist\\/js\\/ooyala.js\\\"\\u003E\\u003C\\/script\\u003E\"}","providerType":"ooyala","providerLink":"http://www.dallasnews.com/oembed","embedType":"video"}

First Amendment:

Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.