Those who attempt to commit a crime will be given a penalty one or two degrees lower than that prescribed by law for the completed crime, to the extent deemed appropriate, taking into account the danger inherent in the attempt and the degree of execution achieved.