If you seperate medical conditions, th34en caffeine pre mdma or caffeine with mdma is rather unconcerning and not uncommon.
Ecstasy tablets often have other impurities mixed within, caffeine often a common inclusion.
Or said differently. An mdma dose can actually benefit if in a highly energetic environment from the inclusion of caffeine if dosed sensibly.
So, 100 mg of mdma with 90- 120mg of ceffeine is not uncommon in pills, nor a bad mix.
However, if you are less tolerant of mdma or have ,medical concerns, then you may need to reconsider mdma use. Let alone its common adulterants such as caffeine