The first part of this code is applicable to all criminal acts unless it is otherwise provided.The criminal legislation shall apply subject to such limitations as derived from any agreement, with a foreign State or from international law generally.