Is it necessary for a person to be infallible in order to execute the punishments of the sharia law, or is it enough to for the crime to be proven and then even a fallible person can execute the relevant shariah punishment

The person who carries out the legal punishment that is proven to the offender is not considered to be infallible