How on earth would this work with the Real ID requirements?

In a broader legal sense, if it is OK for an undocumented worker to use a fake social security number to get an ID, why is it not OK for anyone else to do so [[under Real ID I think it may be a felony.)