The only time this is safe is the receptacle is a dual receptacle with the tabs removed. Then it is actually 2 separate receptacles with separate power sources. Even then, it is not a good idea unless it is a Multiwire Branch Circuit (MWBC). With an MWBC, the breakers are next to each other and connected so that if you turn off one, the other is turned off as well. An MWBC has another advantage in that you get a "free wire" by using one neutral wire instead of two.
However, with breakers 2 & 7, they are not next to each other in the panel and there is a real problem (don't know if this is code or not, but common sense in any case) that if you turn off one breaker, turning off the top receptacle, the bottom receptacle - with live wires - is still on.
On the other hand, if the breakers are connected to the same receptacle - i.e., either exactly the same or one to top and one to bottom but the tabs were not removed - then this is a very dangerous situation, for a bunch of different reasons.