Giving the number doesn't have to be bad for you. (But it can be.)
But yeah, never give any range. Not when talking about previous compensation, and not when talking about what you want. Just give them straight up numbers, if you give anything at all.
And you should definitely give them a number about how much you want to be paid. You want to set the first reference point. And yes, that means you will have to do your own due diligence about how much the market can currently bear for your (interviewing) skills. But you need to know these numbers anyway.