Refraining From Action Of Sin With Intention Of Worldly Things
The second understanding is correct.