Nissan X-Trail 2024 Owners Manual
7.6. Precautions on push-button ignition switch operation

Do not operate the push-button ignition switch while driving the vehicle except in an emergency. (The engine will stop when the ignition switch is pushed 3 consecutive times or the ignition switch is pushed and held for more than 2 seconds.) If the engine stops while the vehicle is being driven, this could lead to a crash and serious injury.
Before operating the push-button ignition switch, be sure to push the park button to shift to the P (Park) position.
Owners Manual