When you refine your Pet with items, its stats will change when you tap Replace.
The system will give the second prompt when there is a substantial drop in stats. Tap Continue will skip the current refinement, but the items are still used. The stats will only be replaced when you tap Confirm.
Please note that refinement is irreversible.