Every person who leaves this state with intent to evade any of the provisions of Section 412 or 413, and to commit any act out of this state such as is prohibited by them, and who does any act which would be punishable under these provisions if committed within this state, is punishable in the same manner as he or she would have been in case such act had been committed within this state.