Zhang Shan has the concept of legality and illegality, but there is no concept of moral right and wrong  She was prosecuted for one of her actions
Although he admitted that his behavior was illegal, he didn't know that it was actually immoral
Zhang Shan did something immoral.