Every person charged with the commission of a crime shall be presumed innocent until the contrary is proved by competent evidence beyond a reasonable doubt; and when an offense has been proved against him or her, and there exists a reasonable doubt as to which of two or more degrees he or she is guilty, he or she shall be convicted only of the lowest.