If you’re having a legitimate issue (device blocked by carrier, after a motherboard repair, or an invalid IMEI shown), here are lawful, safe alternatives you can try:

Hold the button and connect the phone to the PC via a high-quality USB cable.

Here's a step-by-step guide to repairing the IMEI of a Samsung Galaxy J410F using UMT: