The phrase "perverse way" refers to doing something in a strange, unusual, or unconventional manner, often going against what is considered normal or expected. Full definition
We might also take as a given the fact that capitalism can operate in perverse ways. (frieze.com)
ISIS, Al Qaeda and the like interpret the Quran in their own perverse way. (religion.blogs.cnn.com)
In a very perverse way, prison is a form of secure, affordable housing for many prisoners who have had insecure, unsuitable or unaffordable housing prior to their incarceration. (humanrights.gov.au)