As already mentioned above there are more adventurous ways even if the bootloader is locked.
To verify if its locked start into fastboot/bootloader when device is turned off, pressing simultaneously power and vol-up (if this shows recovery instead you can boot from there into bootloader) buttons you should see a screen saying something like “device state locked/unlocked”
Only when you want to proceed you need adb/fastboot on your PC