itsIt is a kernel feature(feature known as recovery, you cant) and you can't change this, unless you change your kernel with desired option enabled one.
edit: didntDidn't try but this appout, but Autosleeper Auto power ON-OFF application seems liketo do, what you want (https://play.google.com/store/apps/details?id=com.as.powerchecker&hl=en).