If that were the only issue, the instructions could always say "spaces are optional".
In that case there would still be different possible ways to enter it. "without dashes and spaces" makes it unambiguous. Again, I'm not claiming it's usable, but sometimes interface design can be counter-intuitive.
-Enter credit card!
-Uhm, I wonder if it means with spaces or with dashes or just the numbers, I hope the money won't go to the wrong place
If it says 'no dashes or spaces' at least it's clear and might be reassuring to the user that the designers have thought of the same thing as him/her, which sort of indicates that he/she is on the right track and hasn't screwed up yet.
I'm not saying this is good usability practice, but it would be interesting to test different versions for user reactions.