Short info for you. It is rare for a notary to also be a lawyer.
However, if that is the case, the following applies here:
Notaries - unlike lawyers - are not representatives of a party, but completely independent and impartial guardians of all parties involved. In their independence, notaries resemble judges.
It is not the task of notaries to authoritatively decide disputes and other matters. In this respect, they differ from judges; rather, they offer advice and participation to the parties involved. The parties are free to accept or reject the advice.
To avoid even the slightest doubt about their impartiality, notaries may no longer act as notaries in a matter in which they have already acted outside their official function. Thus, a lawyer-notary may not notarize a matter in which they (or a person participating in a firm) have already acted as a lawyer. Conversely, the lawyer-notary may not act as a lawyer if they have already acted as a notary in the same matter. Due to the special importance of notarial impartiality, the term "same matter" is to be interpreted broadly.
So, no legal advice and notarization for the same client.