If you're actually living in the US and just taking occasional vacations abroad this is extremely unlikely.
Where people get caught out is when they're trying to basically snowbird between two countries while still on a green card. In that case it's better to first serve your 6 years in the US to earn citizenship. Then you're free to go anywhere anytime you want.