If it is serious, it may be that you are short-sighted about wealth, so that nothing you do will succeed, and it will also lead to very serious diseases in your health.
So I suggest you discuss it with upstairs, for example, put the dog in your house and you take care of it for him. If he usually wants to walk the dog, he can come to your house and get it out.
Of course, you can also negotiate with him that people upstairs should stop having dogs, so that you can change the feng shui at home and get better and better luck.