(1) Where a person does several acts against or in respect of another person or thing, each of which is a crime under this Code or any other enactment, but all of which acts are done in execution of the same design, and, in the opinion of the Court before which the person is tried, from one or continuous transaction, the person may be punished for all of such acts as one crime, or for any one of such several acts as one crime, and all the acts may be taken into consideration in determining punishment, but he or she shall not be liable to separate punishments with respect to the several crimes.