The outlaw life is hard, a lesson that Martin Shkreli learned when Judge Kiyo Matsumoto jailed him over his Facebook (FB) - Get Report post about Hillary Clinton's hair on Wednesday, Sept. 13.

The judge said that Shkreli posed a danger to the public and revoked his $5 million bond.

Last week, the "pharma bro" encouraged his Facebook followers to snatch a sample of the former first lady's hair while she was on her book tour, offering to pony up $5,000 for each sample.

Earlier this week, U.S. prosecutors called for Matsumoto to lock the 34-year-old up as a danger to the community, citing the call for Clinton's locks as well as his online taunts of Teen Vogue editor Lauren Duca. The prosecutors were alerted to the post about Clinton by the Secret Service, which is charged with the protection of members of former first families.

Shkreli said the Facebook post was meant as humor. His lawyer Benjamin Brafman said his client intended no violence but was simply engaged in political hyperbole.

Recently convicted of a trio of fraud charges, Shkreli, a former hedge funder and biotech founder, is awaiting sentencing.

Shkreli sent Matsumoto a letter asking him to not revoke the $5 million bail that keeps their colorful client on the street. Shkreli also sent a letter to the judge, apologizing for what he termed "poor judgment." He went on to assure Matsumoto that he intended no harm. "I want to assure Your Honor that I am not a violent person, have never personally engaged in any violent behavior, nor have I ever intentionally encouraged anyone to do so."

More of What's Trending on TheStreet:

Read more of our biotech coverage.

The missive to the court struck a very different tone from another Facebook post directed at prosecutors before they called for his jailing. "F*#k the government. I will never kiss their ring or snitch. Come at me with your hardest because I haven't seen anything impressive yet."

Shkreli was convicted in August by a Brooklyn jury on two counts of securities fraud and one count of conspiracy regarding alleged mismanagement of a pair of investment funds, cheating his investors of $11 million over a five-year period. Following the verdict, the outspoken Shkreli termed his prosecution "a witch hunt of epic proportions."

It's been said that Shkreli's legal defense has been costly which may explain why he has put the only copy of "Once Upon A Time in Shaolin" by the Wu Tang Clan up for sale. Shkreli purchased the double album for $2 million. Bids have topped the $1 million mark.

Shkreli gained fame when he purchased the 62-year-old drug Daraprim from Impax Laboratories for $55 million through his company Turing Pharmaceuticals and jacked the price per doseto $750 from $13.50. The 5,455% price hike for the drug used to treat malaria and toxoplasmosis in AIDS patients made him the poster boy for pharma hate and hung the "pharma bro" moniker around his neck.

He was also the founder of biotech company Retrophin Inc. which went public using a reverse merger and eventually raised $80.1 million in a trio of private placements, according to PrivateRaise, a database operated by TheStreet that tracks placements larger than $1 million.