failed (remote flashing is not allowed in lock state) how to solve

i'm trying to flash Asus X01AD, while flashing gives error of flashing failed (remote flashing is not allowed in lock state) how to solve