The Buddha explains the wrong way of practice as that which leads to the arising of suffering, and the right way of practice as that which leads to the ending of suffering.
Paṭipadā sutta - Ways Of Practice
At Sāvatthi.
“Bhikkhus, I will teach you the wrong way of practice and the right way of practice. Listen to it, pay close attention, and I will speak."
"Yes, venerable sir," the bhikkhus replied. The Blessed One said this:
"And what, bhikkhus, is the wrong way of practice? Dependent on ignorance, bhikkhus, volitional formations arise; dependent on volitional formations, consciousness arises; dependent on consciousness, name and form arise; dependent on name and form, the six sense bases arise; dependent on the six sense bases, contact arises; dependent on contact, sensation arises; dependent on sensation, craving arises; dependent on craving, clinging arises; dependent on clinging, existence arises; dependent on existence, birth arises; dependent on birth, aging and death, sorrow, lamentation, pain, displeasure, and despair arise. Thus is the arising of this whole mass of suffering. This is called, bhikkhus, the wrong way of practice.
"And what, bhikkhus, is the right way of practice? Dependent on the remainderless fading away and cessation of ignorance comes the ending of volitional formations; with the ending of volitional formations, ending of consciousness; with the ending of consciousness, ending of name and form; with the ending of name and form, ending of the six sense bases; with the ending of the six sense bases, ending of contact; with the ending of contact, ending of sensation; with the ending of sensation, ending of craving; with the ending of craving, ending of clinging; with the ending of clinging, ending of existence; with the ending of existence, ending of birth; with the ending of birth, aging and death, sorrow, lamentation, pain, displeasure, and despair cease. Thus is the ending of this whole mass of suffering. This is called, bhikkhus, the right way of practice.