YAMAHA YZF R 125 – Motorbike in stand on 6th gear

Hello, I turned off my motorcycle at school and I just learned that a friend of mine turned me on for fun in the 5th-6th gear in the stand with the engine switched off, probably without clutch. Was something damaged and how do I best switch down? Ignition on, pull the clutch, start the engine and then just switch it off?