The Enduring Power of Attorney will be invalid, and the person will not have any power to deal with the person's assets. For simply having them sign a document whilst not having capacity will not make them liable to prosecution. If they attempt to act in capacity of attorney for example by dealing with the person's assets, when they do not hold that power then there may be some civil liability.