It is necessary to have international law?

Yes, in order to govern those traveling, and govern all individuals in a different country than their own.