If you want to buy a house in or near a cemetery, you need to consider the following points:
Can you accept such an environment yourself? Do you feel scared, depressed or uneasy?
Whether your family and friends can accept such an environment and whether it will have a negative impact or evaluation on you.
Do you have any plans to buy real estate? If so, can you sell the house smoothly, because some buyers may stay away from such a house.
Whether you know the surrounding planning and land use, whether there are risks and unfavorable factors, such as funeral, burning paper scraps, traffic jams, etc.
Have you consulted a professional feng shui master or architect? Is it necessary to make some adjustments or improvements to enhance the yang and avoid evil spirits?
In a word, this is a decision that needs to consider many factors comprehensively, and there is no standard answer. You can choose according to your actual situation and preferences. I hope my answer is helpful to you.