Given an integer x, return true if x is a palindrome and false otherwise.
Implement the function using integer arithmetic, without converting the number to a string. Negative integers are not palindromes, and the function must return a boolean value.
def is_palindrome(x):