Are you trying to avoid having your spouse's attorney end up with knowledge about you that would give him/her the upper hand....or is your plan to consult the attorney he/she would want to use, just so /heshe could not use him/her?
For the most part you consulting that attorney would make it a conflict of interest for the attorney to represent your spouse. However, if you spend 30 minutes with the attorney now, and a divorce doesn't happen until many years down the road, where the attorney would have no memory of you or your consult, it might not matter.