The action of replevin shall not be maintainable in any case of the seizure of property under execution or attachment when a remedy is given to claim the property by making claim to it in some mode prescribed by law, but the person claiming must resort to the specific mode prescribed in such case, and shall not resort to the action of replevin.