I doubt it's criminal but probably against Steam's terms of service. Who probably require not having a third party account as a condition to play a game bought on Steam.
If that's against Steam ToS, Epic wouldn't be the first on Steam to break it. I had to create a account with Paradox Interactive to play some of their games in multiplayer.