CHAPTER XI
CRIMES AGAINST THE ADMINISTRATION OF JUSTICE
189 Attempt
(1) Subject to subsection (1), any person who—
(a) intending to commit a crime, whether in terms of this Code or any other enactment; or
(b) realising that there is a real risk or possibility that a crime, whether in terms of this Code or any other enactment, may be committed;
does or omits to do anything that has reached at least the commencement of the execution of the intended crime, shall be guilty of attempting to commit the crime concerned:
(2) A person shall not be guilty of attempting to commit a crime if, before the commencement of the execution of the intended crime, he or she changes his or her mind and voluntarily desists from proceeding further with the crime.
EDIT.