When you walk the dog in the park,you must tie it up.或者
You must tie the dog up,when you walk it in the park.