The rule that you need 1 license for 5 guest users only applies if the users are external and not users of your own company. If you use guest users for users of your company, you must buy a license for each user.
I would also recommend to look at the multi tenant applicatioj approach @Jai Verma described.
Greetings,
Tobias