"If the correct definition of biological sex is criminalized, then freedom of speech and belief is over in Scotland," JK Rowling wrote to X.

"I am currently out of the country, but if what I write here is criminalized under the terms of the new law, I look forward to being arrested when I return to the birthplace of the Scottish Enlightenment."

Scotland's community safety minister Siobhian Brown told the Telegraph on Monday that Rowling's remarks could be reported to the police and investigated.

"It is in the hands of Police Scotland whether the police think it is a criminal offense or not," he said.

JK Rowling speaks at Cineworld Leicester Square on November 13, 2018 during the screening of "Fantastic Beasts: The Crimes of Grindelwald" at Cineworld Leicester Square on November 13, 2018
JK Rowling could be arrested for misgendering trans women under Scotland's new hate crime law.
Samir Hussein/WireImage
Scotland's hate crime law came into force on Monday. It bans hate based on age, disability, race, religion, sexual orientation and transgender identity.

Critics said the law was overly broad and could restrict freedom of expression.

Rowling said that by passing the Hate Crime and Public Order Act, politicians are "valuing the feelings of men who fulfill their own ideas of femininity, including misogyny or opportunism, more than the rights and freedoms of real women and girls."

"The new law is wide open to exploitation by activists who want to silence those of us who speak out about the dangers of eliminating single-sex spaces for women and girls and the dangers of making crime data absurd if violence and sexual assaults perpetrated by men are recorded, such as women's crimes, the bizarre injustice of allowing men to compete in women's sports, the unfairness of women's jobs, the use of honors and opportunities by trans-identified men, and the reality of the immutability of biological sex," she continued.

Scotland, a country of 5.45 million people, is part of the United Kingdom but has its own laws and police force.

Rowling was born in England but has called Scotland home for most of her life.  Over the years she became politically active there. 

Heroes is coming back! Heroes is coming back!