Hello. For some reason, whenever I use this code

gui.Frame.Frame.guard.MouseButton1Click:Connect(function()
	local pristea = game.Teams.Prisoners:GetDescendants()
	local pristeam = #pristea
	local guartea = game.Teams.Officers:GetDescendants()
	local guarteam = #guartea
	if pristeam == guarteam then
	print(pristeam - guarteam)
	print(guarteam - pristeam)
	remote:FireServer("Officer")
	elseif guarteam > pristeam then
				game.StarterGui:SetCore("SendNotification", {
				Title = "Team unbalance"; 
				Text = "You'll need to stay on your team until it fixes. Sorry!"; 
				Icon = "rbxassetid://4911872280"; 
				Duration = 10; 
				})
	end
end)

Nothing seems to happen. It doesn't prevent me from joining if I have an unbalance and it doesn't error. Printing it doesn't do anything. Can someone rewrite this line

if pristeam == guarteam then

to prevent it from allowing me to join if it isn't balanced?