You need to use some common sense. If you need to work, and do not have a valid EAD, then just work and don't talk about it too much. Keep it under the table and don't raise flags. Just work for the straight cash and forget about filing taxes and such. If nobody brings anything up, then nothing will happen. But to answer your question, if they find out about the unauthorized work, then it is possible they can use it against you and it could be a reason for denial of AOS.