There are several ways you can stop your Samsung mobile from restarting again and again. Among them:
Perform soft reset;
Perform hard reset;
Enter mobile into recovery mode using Tenorshare ReiBoot for Android;
Repair mobile operating system using Tenorshare ReiBoot for Android.