Hello Danny,
"Lo malo es cuando se hace vicio".
Here vicio means " bad habit"
The literal translation is :
" The bad thing is when it becomes a bad habit".
It means that the immorality of any action reveals its presence when it is repetitively done rising into a bad habit, because probably it turns then into an addiction that is hard to give up .