Import via Data Entity - How to do data validation?

I’m using LedgerJournalEntity to import journal data. If one of the imported journal line fields fails validation, the journal import should be rejected. How can I do this? Which methods should I extend ? (I can’t put those checks on the corresponding back-end tables)
Thank you in advance for your help.

D365FO