No judgment shall be rendered upon a liability of the garnishee arising by reason of any money or other thing received or collected by him as sheriff, or other officer, by force of an execution or other legal process in favor of the defendant.
SDCL 21-18-18