basically, anything means anything so it can also mean something illegal or socially unacceptable. so we need to understand based from the context.
I come up with several examples with 어떤것이라도.
가격이 5만원을 넘지 않는다면, 어떤것이라도 살 것이다.
if you say 어떤것이라도 in this case, with limiting the range or category, then you would say anything that meet the condition.
그 사람이 의식을 회복할 수만 있다면 어떤것이라도 할 텐데.
in this case, it means anything anything, but it includes some kind of impossible things, and you say you will do anything because you want to show your determined will.
내 아버지의 원수를 갚기 위해서라면 나는 어떤것이라도 상관 없어.
usually the meaning related to socially unacceptable or illegal is used in extreme case such as in movie or drama. so in this case, the meaning is close to no matter what I'll do it anyway, or I don't care about the outcome.
hope this was helpful to you :)