When the cause of action has arisen in another state, territory or country between nonresidents of this state, and by the laws of the state, territory or country where the action arose, an action cannot be maintained thereon by reason of the lapse of time, no action shall be maintained thereon in this state.