A prerequisite for loving your neighbor as yourself... is loving yourself.
You shall love your neighbor as yourself. (Mark 12:31)
A prerequisite for denying yourself... is having a self to deny.
“If anyone would come after me, let him deny himself and take up his cross and follow me. (Mark 8:34)