That's taken out of context. The context is that Jesus is asking the disciples to follow him and distinguish themselves from others.
From verses 32-33:
32 “If you love those who love you, what credit is that to you? Even sinners love those who love them.
33 And if you do good to those who are good to you, what credit is that to you? Even sinners do that.
He doesn't seem to say it's bad to love those who love you or do good to those who do good to you, he's just saying it's not special. Likewise, I don't think he's saying it's bad to charge interest for a loan, it just doesn't set you apart from the rest.
If you want to be even better, love those that hate you, do good to those that harm you, and give without expecting anything in return. That will set you apart from the rest.
Usury (charging interest) was illegal for Jews, and if Jesus intended for it to be illegal for his followers, he would've made that clear. Instead, he's merely saying that interest is a normal thing, and if you want to be extraordinary, you won't charge it.