Trouble deleting edge ?

As show above I have 2 edges that I want to dissolve or remove from my model. If I select then and hit X and try to dissolve or delete then it completely mess up my model. Any quick solution to fix this ?

Thank you in advance!

Without the file I don’t know exactly what is going on, but when you dissolve this, it may flip the normals of the remaining face, in which case you would need to flip the face. If the face goes missing, then you would have to select the verts on the top and create a new one. Since you have not provided the after effect of removing this edge, it is hard to tell what is going on. “Messing up the model” is a very general descriptor.