While not a lawyer, I'd assume it would leave you open to legal action by your previous employer (for breach of contract, much like a confidentiality clause that still remains in effect after you've left them). Be up-front about it with the client that approached you, and try and work something out amicably rather than hoping the other company won't find out.