How to handle dfa with countless states?
You seem to have missed the last sentence of the question:


  What is the problem with this DFA?


The problem with this DFA is that it isn't finite (so it's not really a DFA).

A DFA is a static object &mdash; the only way it interacts with the environment is by switching states.