It was, in fact, a wicked and malicious attempt on the part of some third person to fix the crime on the prisoner. 
It was a horrible act by somebody else to frame the prisoner.
The prisoner was guilty and tried to convince everyone that he was framed.